mirror of
https://github.com/systemd/systemd.git
synced 2025-08-25 13:49:55 +03:00
systemctl: fix assertion hit by incorrect comparison
This commit is contained in:
@ -672,7 +672,7 @@ static int list_unit_files(DBusConnection *bus, char **args) {
|
|||||||
UnitFileList *u;
|
UnitFileList *u;
|
||||||
const char *state;
|
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) {
|
if (c >= n_units) {
|
||||||
UnitFileList *w;
|
UnitFileList *w;
|
||||||
|
Reference in New Issue
Block a user