diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-01-28 20:50:30 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-01-28 20:50:30 -0500 |
commit | dcad020c9cb450c61ece604d11941ef6e7945330 (patch) | |
tree | cb455893ba992f85c6ae257200eb25001ce914f6 /src | |
parent | 3d6e2e477ced37fd328870f018950b283cb7293c (diff) | |
download | musl-dcad020c9cb450c61ece604d11941ef6e7945330.zip musl-dcad020c9cb450c61ece604d11941ef6e7945330.tar.gz musl-dcad020c9cb450c61ece604d11941ef6e7945330.tar.bz2 |
fix uninitialized variable in new resolv.conf parser
Diffstat (limited to 'src')
-rw-r--r-- | src/network/resolvconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/resolvconf.c b/src/network/resolvconf.c index 7e4dbe2..2cf1f47 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; |