chiark / gitweb /
systemctl: fix assertion hit by incorrect comparison
authorDave Reisner <dreisner@archlinux.org>
Tue, 15 Jan 2013 23:49:31 +0000 (18:49 -0500)
committerDave Reisner <dreisner@archlinux.org>
Tue, 15 Jan 2013 23:49:31 +0000 (18:49 -0500)
src/systemctl/systemctl.c

index 66d031d..7cf51dc 100644 (file)
@@ -672,7 +672,7 @@ static int list_unit_files(DBusConnection *bus, char **args) {
                         UnitFileList *u;
                         const char *state;
 
-                        assert(dbus_message_iter_get_arg_type(&sub) != DBUS_TYPE_STRUCT);
+                        assert(dbus_message_iter_get_arg_type(&sub) == DBUS_TYPE_STRUCT);
 
                         if (c >= n_units) {
                                 UnitFileList *w;