chiark / gitweb /
systemctl: Fix wrong assertion test
authorMauro Dreissig <mukadr@gmail.com>
Wed, 30 Jan 2013 18:55:24 +0000 (16:55 -0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 31 Jan 2013 04:37:39 +0000 (23:37 -0500)
src/systemctl/systemctl.c

index 408a4f0..5deacbf 100644 (file)
@@ -1013,7 +1013,7 @@ static int dot_one(DBusConnection *bus, const char *name, const char *path) {
         while (dbus_message_iter_get_arg_type(&sub) != DBUS_TYPE_INVALID) {
                 const char *prop;
 
-                assert(dbus_message_iter_get_arg_type(&sub) != DBUS_TYPE_DICT_ENTRY);
+                assert(dbus_message_iter_get_arg_type(&sub) == DBUS_TYPE_DICT_ENTRY);
                 dbus_message_iter_recurse(&sub, &sub2);
 
                 if (bus_iter_get_basic_and_next(&sub2, DBUS_TYPE_STRING, &prop, true) < 0 ||