From dcad020c9cb450c61ece604d11941ef6e7945330 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 28 Jan 2016 20:50:30 -0500 Subject: [PATCH] fix uninitialized variable in new resolv.conf parser --- src/network/resolvconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/resolvconf.c b/src/network/resolvconf.c index 7e4dbe21..2cf1f475 100644 --- a/src/network/resolvconf.c +++ b/src/network/resolvconf.c @@ -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; -- 2.25.1