mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 04:40:04 +01:00
cli: remove one more g_assert()
I pushed accidentally pushed commit9702310f25('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:
parent
8dbe6fa0d5
commit
aba3401df0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue