Commit 89683f4e authored by Adam Wujek's avatar Adam Wujek 💬

shell: clean cmd_buf after execution of a command

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent f80c16e2
......@@ -156,6 +156,8 @@ int shell_exec(const char *cmd)
shell_is_interacting = 1;
i = _shell_exec();
shell_is_interacting = 0;
/* clean cmd_buf */
cmd_buf[0] = '\0';
return i;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment