aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 1f839fe24..0ddfb64b0 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -634,7 +634,7 @@ CURL *curl_easy_duphandle(CURL *incurl)
if(NULL == outcurl)
return NULL; /* failure */
- do {
+ for(;;) {
/*
* We setup a few buffers we need. We should probably make them
@@ -720,8 +720,9 @@ CURL *curl_easy_duphandle(CURL *incurl)
outcurl->magic = CURLEASY_MAGIC_NUMBER;
fail = FALSE; /* we reach this point and thus we are OK */
+ break;
- } while(0);
+ }
if(fail) {
if(outcurl) {