aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-12-02 16:35:02 +0100
committerYang Tse <yangsita@gmail.com>2010-12-02 16:35:02 +0100
commit5580fb2b9cb392f909d39b04292d75b3611197f0 (patch)
treea90f42e3457144118704da7081daf3fe917dca8d /lib/easy.c
parent7e3f0bffe5d930489db80e1d65c27fe44a51f6f4 (diff)
fix compiler warning: statement is not reachable
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 0ddfb64b0..64ae56f2d 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -642,10 +642,9 @@ CURL *curl_easy_duphandle(CURL *incurl)
* the likeliness of us forgetting to init a buffer here in the future.
*/
outcurl->state.headerbuff = malloc(HEADERSIZE);
- if(!outcurl->state.headerbuff) {
+ if(!outcurl->state.headerbuff)
break;
- }
- outcurl->state.headersize=HEADERSIZE;
+ outcurl->state.headersize = HEADERSIZE;
/* copy all userdefined values */
if(Curl_dupset(outcurl, data) != CURLE_OK)
@@ -667,9 +666,8 @@ CURL *curl_easy_duphandle(CURL *incurl)
data->cookies->filename,
outcurl->cookies,
data->set.cookiesession);
- if(!outcurl->cookies) {
+ if(!outcurl->cookies)
break;
- }
}
#endif /* CURL_DISABLE_HTTP */
@@ -721,7 +719,6 @@ CURL *curl_easy_duphandle(CURL *incurl)
fail = FALSE; /* we reach this point and thus we are OK */
break;
-
}
if(fail) {