From 0ecac8aa54bb8dc685234e1485446bf98b6eff1d Mon Sep 17 00:00:00 2001
From: Jiri Denemark <jdenemar@redhat.com>
Date: Thu, 23 Dec 2010 23:03:56 +0100
Subject: [PATCH] bridge: Fix uninitialized variable

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

diff --git a/src/util/bridge.c b/src/util/bridge.c
index dcd3f395c2..81a043cf54 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;
 
-- 
GitLab