summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-07-02 10:44:02 -0400
committerDave Reisner <dreisner@archlinux.org>2013-07-02 10:44:02 -0400
commit294a90cc4af5139e936975a38baaa62771af96ba (patch)
tree34edf0f1b8907166c336c59a2717e2b7482b1823 /src/core
parent06025d9148036ee4de9866f3f067ffa75e14a751 (diff)
dbus-scope: initialize variable before accessing
Diffstat (limited to 'src/core')
-rw-r--r--src/core/dbus-scope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-scope.c b/src/core/dbus-scope.c
index 0205cfff6e..771820c2d8 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)