aboutsummaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-08-24 08:41:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-08-24 08:41:17 +0000
commit6ede4ce79d740e9ea9430bba7654aa8d92c6926a (patch)
tree5bd7f27254756f3d08cc10b30191d3e71d2a80a1 /lib/multi.c
parent10f2fa9c72d7050eaed70474ecad1dd02574e72d (diff)
clarify the code by initing newurl to NULL
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 686372ad1..3525af65b 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -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;