mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-11 13:20:20 +01:00
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:
parent
7a7075b392
commit
687f319201
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue