libnm: g_variant_new() for strings does not allow NULLs

So pass "" instead of NULL.

GLib-CRITICAL **: g_variant_new_string: assertion `string != NULL' failed
This commit is contained in:
Jiří Klimeš 2014-09-30 14:07:34 +02:00
parent 7a7075b392
commit 687f319201

View file

@ -1346,6 +1346,11 @@ nm_client_set_logging (NMClient *client, const char *level, const char *domains,
if (!level && !domains)
return TRUE;
if (!level)
level = "";
if (!domains)
domains = "";
return nmdbus_manager_call_set_logging_sync (priv->manager_proxy,
level, domains,
NULL, error);