daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
65878a
From 4b3825ff691103634adc77a4d3ffc7128923fae7 Mon Sep 17 00:00:00 2001
65878a
From: Lennart Poettering <lennart@poettering.net>
65878a
Date: Wed, 2 Oct 2013 19:37:11 +0200
65878a
Subject: [PATCH] bus: fix potentially uninitialized memory access
65878a
65878a
---
65878a
 src/libsystemd-bus/bus-internal.c | 4 ++--
65878a
 1 file changed, 2 insertions(+), 2 deletions(-)
65878a
65878a
diff --git a/src/libsystemd-bus/bus-internal.c b/src/libsystemd-bus/bus-internal.c
65878a
index 0e66f3d..cac948e 100644
65878a
--- a/src/libsystemd-bus/bus-internal.c
65878a
+++ b/src/libsystemd-bus/bus-internal.c
65878a
@@ -63,7 +63,7 @@ bool object_path_is_valid(const char *p) {
65878a
 
65878a
 bool interface_name_is_valid(const char *p) {
65878a
         const char *q;
65878a
-        bool dot, found_dot;
65878a
+        bool dot, found_dot = false;
65878a
 
65878a
         if (isempty(p))
65878a
                 return false;
65878a
@@ -103,7 +103,7 @@ bool interface_name_is_valid(const char *p) {
65878a
 
65878a
 bool service_name_is_valid(const char *p) {
65878a
         const char *q;
65878a
-        bool dot, found_dot, unique;
65878a
+        bool dot, found_dot = false, unique;
65878a
 
65878a
         if (isempty(p))
65878a
                 return false;