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

View file

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