mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 08:30:15 +01:00
cli: remove wrong assertion in check_valid_name()
As explained in the function comment, a NULL value for @val is acceptable. Otherwise: $ nmcli connection edit (process:2276): nmcli-CRITICAL **: check_valid_name: assertion 'val' failed Fixes:fb8fe1d8cb(cherry picked from commit73221a809d)
This commit is contained in:
parent
1b815346aa
commit
1cedca3e69
1 changed files with 0 additions and 1 deletions
|
|
@ -2916,7 +2916,6 @@ check_valid_name (const char *val, const NameItem *array, const NameItem *array_
|
|||
GError *tmp_err = NULL;
|
||||
int i;
|
||||
|
||||
g_return_val_if_fail (val, NULL);
|
||||
g_return_val_if_fail (array, NULL);
|
||||
|
||||
/* Create a temporary array that can be used in nmc_string_is_valid() */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue