]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: shut up gcc.
authortomponline <tomp@tomp.uk>
Mon, 4 Mar 2019 08:23:39 +0000 (08:23 +0000)
committertomponline <tomp@tomp.uk>
Mon, 4 Mar 2019 08:23:39 +0000 (08:23 +0000)
Closes #2885.

Signed-off-by: tomponline <tomp@tomp.uk>
src/lxc/network.c

index fd7d867fc58a74edafac5bc5026432c519244a56..fc3a8740d6604a3bd7c58866648ac6cce4175d29 100644 (file)
@@ -550,7 +550,7 @@ out:
 #define PHYSNAME "/sys/class/net/%s/phy80211/name"
 static char *is_wlan(const char *ifname)
 {
-       __do_free char *path;
+       __do_free char *path = NULL;
        int i, ret;
        long physlen;
        size_t len;