1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 20:25:25 +03:00

dbus-scope: initialize variable before accessing

This commit is contained in:
Dave Reisner 2013-07-02 10:44:02 -04:00
parent 06025d9148
commit 294a90cc4a

View File

@ -93,7 +93,7 @@ static int bus_scope_set_transient_property(
if (streq(name, "PIDs")) {
DBusMessageIter sub;
unsigned n;
unsigned n = 0;
if (dbus_message_iter_get_arg_type(i) != DBUS_TYPE_ARRAY ||
dbus_message_iter_get_element_type(i) != DBUS_TYPE_UINT32)