summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-15 18:49:31 -0500
committerDave Reisner <dreisner@archlinux.org>2013-01-15 18:49:31 -0500
commitec76596cab6298ae1fb9d7cbe4ad56f175e87943 (patch)
treef831e3e4d2f1d917ff569a2218e3e5b1d0f2fc58 /src/systemctl
parentcd7409576d36baeb4ccc93471d3bd9d72a436d59 (diff)
systemctl: fix assertion hit by incorrect comparison
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 66d031dae8..7cf51dceb8 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -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;