mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix two uninitialized variable warnings
gcc only reports them when compiling with -O3.
This commit is contained in:
@@ -91,7 +91,7 @@ ifaceGetFlags(const char *ifname, short *flags) {
|
||||
|
||||
int
|
||||
ifaceIsUp(const char *ifname, bool *up) {
|
||||
short flags;
|
||||
short flags = 0;
|
||||
int rc = ifaceGetFlags(ifname, &flags);
|
||||
|
||||
if (rc)
|
||||
|
||||
Reference in New Issue
Block a user