systemctl: fix assertion hit by incorrect comparison

This commit is contained in:
Dave Reisner 2013-01-15 18:49:31 -05:00
parent cd7409576d
commit ec76596cab

View 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;