summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/nv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/nv.c b/commands/nv.c
index 8d4192402c..fa865811dc 100644
--- a/commands/nv.c
+++ b/commands/nv.c
@@ -55,7 +55,7 @@ static int do_nv(int argc, char *argv[])
for (i = 0; i < argc; i++) {
int ret;
- value = strchr(argv[0], '=');
+ value = strchr(argv[i], '=');
if (value) {
*value = 0;
value++;