Diff between 150bbff449c787f26b7de3e6006bdb2ea6365b08 and 75f73f6d62645734f9e7a2385902750cf3ad3f16
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 dfda812..4658819 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -1158,7 +1158,7 @@ void bt_shell_init(int argc, char **argv, const struct bt_shell_opt *opt)
return;
}
- *opt->optarg[index - offset] = optarg;
+ *opt->optarg[index - offset] = optarg ? : "";
}
index = -1;