*** empty log message ***
authorJoe Shaw <joeshaw@src.gnome.org>
Tue, 11 Feb 2003 21:29:31 +0000 (21:29 +0000)
committerJoe Shaw <joeshaw@src.gnome.org>
Tue, 11 Feb 2003 21:29:31 +0000 (21:29 +0000)
libsoup/soup-address.c

index ce6e306..2a66d24 100644 (file)
@@ -498,22 +498,19 @@ soup_gethostbyname (const char       *hostname,
 #elif defined(HAVE_GETHOSTBYNAME_R_SOLARIS)
        {
                size_t len;
-               int herr, res;
+               int herr;
 
                len = 1024;
                buf = g_new (char, len);
 
-               while ((res = gethostbyname_r (hostname,
-                                              &result_buf,
-                                              buf,
-                                              len,
-                                              &herr)) == ERANGE) {
+               while ((result = gethostbyname_r (hostname,
+                                                 &result_buf,
+                                                 buf,
+                                                 len,
+                                                 &herr)) == ERANGE) {
                        len *= 2;
                        buf = g_renew (char, buf, len);
                }
-
-               if (res)
-                       result = NULL;
        }
 #elif defined(HAVE_GETHOSTBYNAME_R_HPUX)
        {