mirror of https://gitee.com/openkylin/libvirt.git
Fix uninitialized variable in NWfilter IP learning code
* src/nwfilter/nwfilter_learnipaddr.c: Initialize ret variable
This commit is contained in:
parent
ea7182c29f
commit
3fb94eeeb2
|
@ -340,6 +340,7 @@ virNWFilterAddIpAddrForIfname(const char *ifname, char *addr)
|
|||
} else {
|
||||
if (virNWFilterVarValueAddValue(val, addr) < 0)
|
||||
ret = -1;
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
err_exit:
|
||||
|
|
Loading…
Reference in New Issue