3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:22:51 +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,7 +890,8 @@ void display_agent_prompt_release(const char *label)
void display_quit(void)
{
rl_crlf();
if (command_is_interactive_mode())
rl_crlf();
}
static void window_change_signal_handler(void *user_data)