mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 15:58:29 +02:00
dispatcher: fix crash on missing scripts (bgo #738654)
GLib-CRITICAL **: g_variant_type_checked_: assertion `g_variant_type_string_is_valid (type_string)' failed GLib-CRITICAL **: g_variant_new_array: assertion `n_children > 0 || child_type != NULL' failed https://bugzilla.gnome.org/show_bug.cgi?id=738654
This commit is contained in:
parent
08c0e73ec5
commit
4ad7cda7a4
1 changed files with 1 additions and 1 deletions
|
|
@ -484,7 +484,7 @@ handle_action (NMDBusDispatcher *dbus_dispatcher,
|
|||
if (!sorted_scripts) {
|
||||
GVariant *results;
|
||||
|
||||
results = g_variant_new_array (G_VARIANT_TYPE ("sus"), NULL, 0);
|
||||
results = g_variant_new_array (G_VARIANT_TYPE ("(sus)"), NULL, 0);
|
||||
g_dbus_method_invocation_return_value (context, g_variant_new ("(@a(sus))", results));
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue