From: Dave Reisner Date: Tue, 2 Jul 2013 14:44:02 +0000 (-0400) Subject: dbus-scope: initialize variable before accessing X-Git-Tag: v205~25 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=294a90cc4af5139e936975a38baaa62771af96ba;ds=sidebyside dbus-scope: initialize variable before accessing --- diff --git a/src/core/dbus-scope.c b/src/core/dbus-scope.c index 0205cfff6..771820c2d 100644 --- a/src/core/dbus-scope.c +++ b/src/core/dbus-scope.c @@ -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)