settings/d-bus: fix boolean return value of "LoadConnections"

The boolean value is intended to indicate success. It would indicated
failure due to a bug.

Fixes: 297d4985ab ('core/dbus: rework D-Bus implementation to use lower layer GDBusConnection API'):
(cherry picked from commit 22e830f046)
(cherry picked from commit e73a505866)
(cherry picked from commit 1337ebd9d0)
(cherry picked from commit 703864e2b3)
This commit is contained in:
Thomas Haller 2019-05-10 14:53:51 +02:00
parent 7a019089d4
commit add6f1c236

View file

@ -1481,7 +1481,7 @@ next_filename:
g_dbus_method_invocation_return_value (invocation,
g_variant_new ("(b^as)",
(gboolean) (!!failures),
(gboolean) (!failures),
failures
? (const char **) failures->pdata
: NM_PTRARRAY_EMPTY (const char *)));