3
0
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:
Ronan Pigott 2023-05-02 01:48:31 -07:00 committed by Denis Kenzior
parent 68089783b6
commit 3687f7947b

View File

@ -890,6 +890,7 @@ void display_agent_prompt_release(const char *label)
void display_quit(void) void display_quit(void)
{ {
if (command_is_interactive_mode())
rl_crlf(); rl_crlf();
} }