Diff between f718b35b1bd9079fafd1f56f66da3e8d2641c5ce and deae158e2bac8971d1dd5573f0aa4af968b21e35
Changed Files
| File | Additions | Deletions | Status |
| src/shared/shell.c | +3 | -0 | modified |
Full Patch
diff --git a/src/shared/shell.c b/src/shared/shell.c
index 3aabda7..b4e6436 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -429,6 +429,9 @@ void bt_shell_hexdump(const unsigned char *buf, size_t len)
void bt_shell_prompt_input(const char *label, const char *msg,
bt_shell_prompt_input_func func, void *user_data)
{
+ if (!data.init || data.mode)
+ return;
+
/* Normal use should not prompt for user input to the value a second
* time before it releases the prompt, but we take a safe action. */
if (data.saved_prompt)