aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2010-06-02 23:11:59 +0200
committerKamil Dudka <kdudka@redhat.com>2010-06-02 23:50:38 +0200
commitc072bd460992355217c9077e2d33152ca0007e8f (patch)
tree66b4345b6c0fd9ffddaf8b9a9fecc758e37ffd13 /lib/transfer.c
parent684830cb2a2f10e987658ba36915a681271be941 (diff)
lib: eliminate some dead code
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index c466e8716..191d3dc19 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -2057,13 +2057,12 @@ static CURLcode Curl_do_perform(struct SessionHandle *data)
if(rc)
res = rc;
else
- retry = (bool)(newurl?TRUE:FALSE);
+ retry = (newurl?TRUE:FALSE);
if(retry) {
+ /* we know (newurl != NULL) at this point */
res = CURLE_OK;
follow = FOLLOW_RETRY;
- if (!newurl)
- res = CURLE_OUT_OF_MEMORY;
}
else if (res == CURLE_OK) {
/*