From: Carlo Lobrano Date: Thu, 22 Jun 2017 07:40:37 +0000 (+0200) Subject: uqmi_add_command: fixed command argument assignment X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=01944dd7089b15f55b463072e1b46f1144e8aab4;p=oweals%2Fuqmi.git uqmi_add_command: fixed command argument assignment The char *arg passed to uqmi_add_command was not assigned to cmd[idx].arg. Signed-off-by: Carlo Lobrano --- 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)