summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-objects.c
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-02-20 17:14:50 +0100
committerDaniel Mack <zonque@gmail.com>2014-02-20 17:18:07 +0100
commitc94d7fc3cefa16f6b715d469b7aa93c39c649b3c (patch)
treeefded4b812d82163578bbff43e16ddaf1af357a0 /src/libsystemd/sd-bus/bus-objects.c
parente288d6a81a7731fd61029db0ff8938f4f3e72856 (diff)
libsystemd: fix compiler warning in property_get_set_callbacks_run()
gcc (4.8.2, arm) doesn't understand that vtable_property_get_userdata() will always set 'u' when it returns > 0. Hence, the warning is bogus, but anyway. src/libsystemd/sd-bus/bus-objects.c:510:19: warning: 'u' may be used uninitialized in this function [-Wmaybe-uninitialized] (and yes, indeed, even the reported line numbers are bogus in this case)
Diffstat (limited to 'src/libsystemd/sd-bus/bus-objects.c')
-rw-r--r--src/libsystemd/sd-bus/bus-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c
index 85800cb348..7d325fab33 100644
--- a/src/libsystemd/sd-bus/bus-objects.c
+++ b/src/libsystemd/sd-bus/bus-objects.c
@@ -527,7 +527,7 @@ static int property_get_set_callbacks_run(
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
- void *u;
+ void *u = NULL;
int r;
assert(bus);