From: Lennart Poettering Date: Wed, 2 Oct 2013 17:37:11 +0000 (+0200) Subject: bus: fix potentially uninitialized memory access X-Git-Tag: v209~1990 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f5f6e41a9ee008e1632f79ab3fa20beef7c2b613;p=elogind.git bus: fix potentially uninitialized memory access --- diff --git a/src/libsystemd-bus/bus-internal.c b/src/libsystemd-bus/bus-internal.c index 0e66f3d35..cac948e87 100644 --- a/src/libsystemd-bus/bus-internal.c +++ b/src/libsystemd-bus/bus-internal.c @@ -63,7 +63,7 @@ bool object_path_is_valid(const char *p) { bool interface_name_is_valid(const char *p) { const char *q; - bool dot, found_dot; + bool dot, found_dot = false; if (isempty(p)) return false; @@ -103,7 +103,7 @@ bool interface_name_is_valid(const char *p) { bool service_name_is_valid(const char *p) { const char *q; - bool dot, found_dot, unique; + bool dot, found_dot = false, unique; if (isempty(p)) return false;