[systemd-commits] src/libsystemd-bus
Dave Reisner
dreisner at kemper.freedesktop.org
Thu Oct 17 13:22:17 PDT 2013
src/libsystemd-bus/sd-event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fe8245eb3c4bc4c492168b861ce3b631479a9046
Author: Dave Reisner <dreisner at archlinux.org>
Date: Wed Oct 16 20:24:11 2013 -0400
sd-event: initialize return value
src/libsystemd-bus/sd-event.c:1597:13: warning: 'r' may be used
uninitialized in this function [-Wmaybe-uninitialized]
diff --git a/src/libsystemd-bus/sd-event.c b/src/libsystemd-bus/sd-event.c
index ace97dc..19fa982 100644
--- a/src/libsystemd-bus/sd-event.c
+++ b/src/libsystemd-bus/sd-event.c
@@ -1594,7 +1594,7 @@ static int process_signal(sd_event *e, uint32_t events) {
}
static int source_dispatch(sd_event_source *s) {
- int r;
+ int r = 0;
assert(s);
assert(s->pending || s->type == SOURCE_QUIT);
More information about the systemd-commits
mailing list