]> granicus.if.org Git - curl/commitdiff
parse_proxy: remove dead code.
authorDaniel Stenberg <daniel@haxx.se>
Fri, 3 Oct 2014 21:51:19 +0000 (23:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 3 Oct 2014 21:51:19 +0000 (23:51 +0200)
Coverity CID 982331.

lib/url.c

index 0ee6fb042b152724442675b782be098bff0fe15b..da67edf78c6a3105ce1525a5e2420bb638a56fdb 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -4434,10 +4434,7 @@ static CURLcode parse_proxy(struct SessionHandle *data,
         conn->bits.proxy_user_passwd = TRUE; /* enable it */
         atsign++; /* the right side of the @-letter */
 
-        if(atsign)
-          proxyptr = atsign; /* now use this instead */
-        else
-          res = CURLE_OUT_OF_MEMORY;
+        proxyptr = atsign; /* now use this instead */
       }
     }