clarify the code by initing newurl to NULL

This commit is contained in:
Daniel Stenberg 2009-08-24 08:41:17 +00:00
parent 10f2fa9c72
commit 6ede4ce79d
1 changed files with 2 additions and 2 deletions

View File

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