]> granicus.if.org Git - curl/commitdiff
clarify the code by initing newurl to NULL
authorDaniel Stenberg <daniel@haxx.se>
Mon, 24 Aug 2009 08:41:17 +0000 (08:41 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 24 Aug 2009 08:41:17 +0000 (08:41 +0000)
lib/multi.c

index 686372ad169464641c0d310e82f614ba65e3f9a9..3525af65b48f4601f1c17c0578ae8f140c93fade 100644 (file)
@@ -1180,7 +1180,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
            * may have unexpectedly died.  If possible, send the connection
            * back to the CONNECT phase so we can try again.
            */
-          char *newurl;
+          char *newurl = NULL;
           followtype follow=FOLLOW_NONE;
           CURLcode drc;
           bool retry = FALSE;
@@ -1378,7 +1378,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
         Curl_done(&easy->easy_conn, easy->result, FALSE);
       }
       else if(TRUE == done) {
-        char *newurl;
+        char *newurl = NULL;
         bool retry = FALSE;
         followtype follow=FOLLOW_NONE;