From 9a8323311ca500579b86905fcf539f17c193ce25 Mon Sep 17 00:00:00 2001
From: Pierre Aubert
Date: Tue, 8 Oct 2013 14:20:27 +0200
Subject: env: fix the env export varname
The env export command doesn't export the first variable of the list
since commit 5a31ea04c9ee5544fbb70ad7597ea4b294840eab
"env grep" - reimplement command using hexport_r()
Signed-off-by: Pierre Aubert
---
lib/hashtable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'lib/hashtable.c')
diff --git a/lib/hashtable.c b/lib/hashtable.c
index c5a2b08..4356b23 100644
--- a/lib/hashtable.c
+++ b/lib/hashtable.c
@@ -564,7 +564,7 @@ static int match_entry(ENTRY *ep, int flag,
int arg;
void *priv = NULL;
- for (arg = 1; arg < argc; ++arg) {
+ for (arg = 0; arg < argc; ++arg) {
#ifdef CONFIG_REGEX
struct slre slre;
--
cgit v1.1