]> sjero.net Git - wget/blobdiff - src/host.c
[svn] Remove duplicate initialization.
[wget] / src / host.c
index bbf90ff8ad886f712d27bd1e52a33fe31815b587..9d83e038119c9c4f946d51fec0f4e8a2b7b7178d 100644 (file)
@@ -211,9 +211,9 @@ address_list_from_addrinfo (const struct addrinfo *ai)
     return NULL;
 
   al = xnew0 (struct address_list);
-  al->addresses  = xnew_array (ip_address, cnt);
-  al->count      = cnt;
-  al->refcount   = 1;
+  al->addresses = xnew_array (ip_address, cnt);
+  al->count     = cnt;
+  al->refcount  = 1;
 
   ip = al->addresses;
   for (ptr = ai; ptr != NULL; ptr = ptr->ai_next)
@@ -518,7 +518,7 @@ cache_remove (const char *host)
 struct address_list *
 lookup_host (const char *host, int flags)
 {
-  struct address_list *al = NULL;
+  struct address_list *al;
   int silent = flags & LH_SILENT;
   int use_cache;
 
@@ -587,7 +587,7 @@ lookup_host (const char *host, int flags)
        hints.ai_flags |= AI_ADDRCONFIG;
 #else
        /* On systems without AI_ADDRCONFIG, emulate it by manually
-          checking whether the system supports IPv6 sockets and.  */
+          checking whether the system supports IPv6 sockets.  */
        if (!socket_has_inet6 ())
          hints.ai_family = AF_INET;
 #endif