From: hniksic Date: Mon, 28 Feb 2005 18:48:23 +0000 (-0800) Subject: [svn] Avoid unneeded initialization of local var. X-Git-Tag: v1.13~1269 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=3d04bb3a2cea5f151bab7cc93c0b9e5df3cd8e59 [svn] Avoid unneeded initialization of local var. --- diff --git a/src/connect.c b/src/connect.c index 4963512a..ff7a741c 100644 --- a/src/connect.c +++ b/src/connect.c @@ -261,7 +261,7 @@ connect_to_ip (const ip_address *ip, int port, const char *print) { struct sockaddr_storage ss; struct sockaddr *sa = (struct sockaddr *)&ss; - int sock = -1; + int sock; /* If PRINT is non-NULL, print the "Connecting to..." line, with PRINT being the host name we're connecting to. */ diff --git a/src/convert.c b/src/convert.c index a3d724ac..0a3f6bd0 100644 --- a/src/convert.c +++ b/src/convert.c @@ -202,7 +202,7 @@ convert_links (const char *file, struct urlpos *links) any URL needs to be converted in the first place. If not, just leave the file alone. */ int dry_count = 0; - struct urlpos *dry = links; + struct urlpos *dry; for (dry = links; dry; dry = dry->next) if (dry->convert != CO_NOCONVERT) ++dry_count;