summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index f9545a9..8e9810d 100644
--- a/commands.c
+++ b/commands.c
@@ -193,7 +193,7 @@ void uqmi_add_command(char *arg, int cmd)
cmds = realloc(cmds, n_cmds * sizeof(*cmds));
cmds[idx].handler = &uqmi_cmd_handler[cmd];
- cmds[idx].arg = optarg;
+ cmds[idx].arg = arg;
}
static void uqmi_print_result(struct blob_attr *data)