summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-01-28 20:50:30 -0500
committerRich Felker <dalias@aerifal.cx>2016-01-28 20:50:30 -0500
commitdcad020c9cb450c61ece604d11941ef6e7945330 (patch)
treecb455893ba992f85c6ae257200eb25001ce914f6 /src/network
parent3d6e2e477ced37fd328870f018950b283cb7293c (diff)
downloadmusl-dcad020c9cb450c61ece604d11941ef6e7945330.tar.gz
musl-dcad020c9cb450c61ece604d11941ef6e7945330.tar.bz2
musl-dcad020c9cb450c61ece604d11941ef6e7945330.tar.xz
musl-dcad020c9cb450c61ece604d11941ef6e7945330.zip
fix uninitialized variable in new resolv.conf parser
Diffstat (limited to 'src/network')
-rw-r--r--src/network/resolvconf.c2
1 files changed, 1 insertions, 1 deletions
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;