]> sjero.net Git - wget/commitdiff
[svn] Avoid unneeded initialization of local var.
authorhniksic <devnull@localhost>
Mon, 28 Feb 2005 18:48:23 +0000 (10:48 -0800)
committerhniksic <devnull@localhost>
Mon, 28 Feb 2005 18:48:23 +0000 (10:48 -0800)
src/connect.c
src/convert.c

index 4963512a831a2718501b2fb3781f39ac6bb2ef4f..ff7a741c2c198b6c2e348251595447bb178af474 100644 (file)
@@ -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.  */
index a3d724ace1f1cbe8210ae129ddf93ae165133e96..0a3f6bd0ef587b213af99eb72665a8956b057ce1 100644 (file)
@@ -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;