]> granicus.if.org Git - musl/commitdiff
remove dead store in res_msend
authorPetr Vaněk <pv@excello.cz>
Sun, 17 Apr 2016 14:53:08 +0000 (14:53 +0000)
committerRich Felker <dalias@aerifal.cx>
Mon, 18 Apr 2016 05:31:17 +0000 (01:31 -0400)
The variable nss is set to zero in following line.

src/network/res_msend.c

index a47d18ddbffb4697542d533bbb74128c0c03ea1c..de7f615762e72b577ebc09c48363fad8ac27fb44 100644 (file)
@@ -52,7 +52,6 @@ int __res_msend_rc(int nqueries, const unsigned char *const *queries,
        timeout = 1000*conf->timeout;
        attempts = conf->attempts;
 
-       nns = conf->nns;
        for (nns=0; nns<conf->nns; nns++) {
                const struct address *iplit = &conf->ns[nns];
                if (iplit->family == AF_INET) {