projects
/
project
/
uqmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ceeab6
)
uqmi_add_command: fixed command argument assignment
author
Carlo Lobrano
<c.lobrano@gmail.com>
Thu, 22 Jun 2017 07:40:37 +0000
(09:40 +0200)
committer
John Crispin
<john@phrozen.org>
Thu, 24 May 2018 07:47:36 +0000
(09:47 +0200)
The char *arg passed to uqmi_add_command was not assigned to cmd[idx].arg.
Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
commands.c
patch
|
blob
|
history
diff --git
a/commands.c
b/commands.c
index f9545a9c58438df5f58f21883de280eea084836f..8e9810d2cb2c58d855e0dbc25b157ac02744fbb3 100644
(file)
--- 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 =
opt
arg;
+ cmds[idx].arg = arg;
}
static void uqmi_print_result(struct blob_attr *data)