fix uninitialized variable in new resolv.conf parser
authorRich Felker <dalias@aerifal.cx>
Fri, 29 Jan 2016 01:50:30 +0000 (20:50 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 29 Jan 2016 01:50:30 +0000 (20:50 -0500)
src/network/resolvconf.c

index 7e4dbe21a13e9519efe74f14736b50ae0baeb0cc..2cf1f47542ab50e38a4588dcb973793e4f308e5a 100644 (file)
@@ -10,7 +10,7 @@ int __get_resolv_conf(struct resolvconf *conf, char *search, size_t search_sz)
        char line[256];
        unsigned char _buf[256];
        FILE *f, _f;
-       int nns;
+       int nns = 0;
 
        conf->ndots = 1;
        conf->timeout = 5;