]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg: simmer down silly compilers
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 2 Oct 2017 01:44:06 +0000 (03:44 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 2 Oct 2017 01:44:06 +0000 (03:44 +0200)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/ipc.c

index ceeb8478d7243a53c8e8d70535dc7d098494342a..0e61a3e2bf8de104e63d593da0b77491354b2f64 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -90,7 +90,7 @@ static FILE *userspace_interface_file(const char *interface)
        struct stat sbuf;
        struct sockaddr_un addr = { .sun_family = AF_UNIX };
        int fd = -1, ret;
-       FILE *f;
+       FILE *f = NULL;
 
        ret = -EINVAL;
        if (strchr(interface, '/'))