ryantimwilson / rpms / systemd

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