From 01944dd7089b15f55b463072e1b46f1144e8aab4 Mon Sep 17 00:00:00 2001 From: Carlo Lobrano Date: Thu, 22 Jun 2017 09:40:37 +0200 Subject: [PATCH] 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 --- commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1