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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user