mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
client: avoid segfault in iwctl quit
iwctl quit (running quit non-interactively) isn't a useful command, but it shouldn't segfault. Let's avoid calling readline functions if we haven't initialized readline in this run.
This commit is contained in:
parent
68089783b6
commit
3687f7947b
@ -890,6 +890,7 @@ void display_agent_prompt_release(const char *label)
|
||||
|
||||
void display_quit(void)
|
||||
{
|
||||
if (command_is_interactive_mode())
|
||||
rl_crlf();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user