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 commit 73221a809d)
This commit is contained in:
Beniamino Galvani 2016-05-19 15:01:35 +02:00
parent 1b815346aa
commit 1cedca3e69

View file

@ -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() */