cli: remove one more g_assert()

I pushed accidentally pushed commit 9702310f25 ('clients: bulk removal
of g_assert*() statements') earlier than I intended, without addressing
one more case introduced by preceding merge. Fix it now.

Fixes: 9702310f25 ('clients: bulk removal of g_assert*() statements')

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1166
This commit is contained in:
Lubomir Rintel
2022-03-28 15:04:07 +02:00
parent 8dbe6fa0d5
commit aba3401df0

View File

@@ -9723,7 +9723,7 @@ do_connection_migrate(const NMCCommand *cmd, NmCli *nmc, int argc, const char *c
gs_free char *line = NULL;
/* nmc_do_cmd() should not call this with argc=0. */
g_assert(!nmc->complete);
g_return_if_fail(!nmc->complete);
line = nmc_readline(&nmc->nmc_config, PROMPT_CONNECTIONS);
nmc_string_to_arg_array(line, NULL, TRUE, &arg_arr, &arg_num);