aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/multi-formadd.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/multi-formadd.c')
-rw-r--r--docs/examples/multi-formadd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/multi-formadd.c b/docs/examples/multi-formadd.c
index bd85cc641..975cb605e 100644
--- a/docs/examples/multi-formadd.c
+++ b/docs/examples/multi-formadd.c
@@ -35,7 +35,7 @@ int main(void)
CURL *curl;
CURLM *multi_handle;
- int still_running;
+ int still_running = 0;
struct curl_httppost *formpost = NULL;
struct curl_httppost *lastptr = NULL;
@@ -83,7 +83,7 @@ int main(void)
curl_multi_perform(multi_handle, &still_running);
- do {
+ while(still_running) {
struct timeval timeout;
int rc; /* select() return code */
CURLMcode mc; /* curl_multi_fdset() return code */
@@ -154,7 +154,7 @@ int main(void)
printf("running: %d!\n", still_running);
break;
}
- } while(still_running);
+ }
curl_multi_cleanup(multi_handle);