Fix uninitialized variable in NWfilter IP learning code

* src/nwfilter/nwfilter_learnipaddr.c: Initialize ret variable
This commit is contained in:
Daniel P. Berrange 2011-11-23 12:16:01 +00:00
parent ea7182c29f
commit 3fb94eeeb2
1 changed files with 1 additions and 0 deletions

View File

@ -340,6 +340,7 @@ virNWFilterAddIpAddrForIfname(const char *ifname, char *addr)
} else {
if (virNWFilterVarValueAddValue(val, addr) < 0)
ret = -1;
ret = 0;
}
err_exit: