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

[libvirt] [PATCH] Fix uninitialized variable in NWfilter IP learning code



From: "Daniel P. Berrange" <berrange redhat com>

Pushed as a build-breaker fix

* src/nwfilter/nwfilter_learnipaddr.c: Initialize ret variable
---
 src/nwfilter/nwfilter_learnipaddr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/nwfilter/nwfilter_learnipaddr.c b/src/nwfilter/nwfilter_learnipaddr.c
index 675ef5b..d924c4d 100644
--- a/src/nwfilter/nwfilter_learnipaddr.c
+++ b/src/nwfilter/nwfilter_learnipaddr.c
@@ -340,6 +340,7 @@ virNWFilterAddIpAddrForIfname(const char *ifname, char *addr)
     } else {
         if (virNWFilterVarValueAddValue(val, addr) < 0)
             ret = -1;
+        ret = 0;
     }
 
 err_exit:
-- 
1.7.6.4


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