projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
274f8c2
)
shared/shell: Fix parsing of tool name
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Mon, 8 Oct 2018 07:35:53 +0000
(10:35 +0300)
committer
himanshu
<h.himanshu@samsung.com>
Tue, 14 Jan 2020 08:53:35 +0000
(14:23 +0530)
Fix leaving leading '/' when parsing tool name.
Change-Id: Ifc7fd6fde54923e64d25c1a33e1d16c873f86732
Signed-off-by: himanshu <h.himanshu@samsung.com>
src/shared/shell.c
patch
|
blob
|
history
diff --git
a/src/shared/shell.c
b/src/shared/shell.c
index
7c3c2da
..
2410464
100644
(file)
--- 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) {