From 687f31920145af8abe5a81b520b8080f895e29cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Tue, 30 Sep 2014 14:07:34 +0200 Subject: [PATCH] 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 --- libnm/nm-client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libnm/nm-client.c b/libnm/nm-client.c index c2d32ad936..175e5008a4 100644 --- a/libnm/nm-client.c +++ b/libnm/nm-client.c @@ -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);