[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] bridge: Fix uninitialized variable



---
Pushed under the build-breaker rule.

 src/util/bridge.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/bridge.c b/src/util/bridge.c
index dcd3f39..81a043c 100644
--- a/src/util/bridge.c
+++ b/src/util/bridge.c
@@ -676,7 +676,7 @@ brAddInetAddress(brControl *ctl ATTRIBUTE_UNUSED,
                  virSocketAddr *addr,
                  unsigned int prefix)
 {
-    virCommandPtr cmd;
+    virCommandPtr cmd = NULL;
     char *addrstr;
     int ret = -1;
 
@@ -715,7 +715,7 @@ brDelInetAddress(brControl *ctl ATTRIBUTE_UNUSED,
                  virSocketAddr *addr,
                  unsigned int prefix)
 {
-    virCommandPtr cmd;
+    virCommandPtr cmd = NULL;
     char *addrstr;
     int ret = -1;
 
-- 
1.7.3.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]