Diff between 876c91ccc4b2c946b4c3e42995ff84146b503fd9 and 57b7dea29b23535e196c76b5d5ba2d67d6d04fdb
Changed Files
| File | Additions | Deletions | Status |
| src/shared/shell.c | +1 | -1 | modified |
Full Patch
diff --git a/src/shared/shell.c b/src/shared/shell.c
index 7c3c2da..2410464 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -1030,7 +1030,7 @@ void bt_shell_init(int argc, char **argv, const struct bt_shell_opt *opt)
if (!data.name)
data.name = strdup(argv[0]);
else
- data.name = strdup(data.name++);
+ data.name = strdup(++data.name);
while ((c = getopt_long(argc, argv, optstr, options, &index)) != -1) {
switch (c) {