]> granicus.if.org Git - curl/commitdiff
multi_runsingle: add braces to clarify the code
authorDaniel Stenberg <daniel@haxx.se>
Thu, 30 May 2013 21:34:33 +0000 (23:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 May 2013 21:34:33 +0000 (23:34 +0200)
lib/multi.c

index 77262fc34950595ef901ebe6c4a2e44061ac4cc4..a5a5798d2e51c67e37dd82bb19f6c50584f990f0 100644 (file)
@@ -1529,14 +1529,15 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
           else
             follow = FOLLOW_RETRY;
           easy->result = Curl_done(&easy->easy_conn, CURLE_OK, FALSE);
-          if(easy->result == CURLE_OK)
+          if(easy->result == CURLE_OK) {
             easy->result = Curl_follow(data, newurl, follow);
-          if(CURLE_OK == easy->result) {
-            multistate(easy, CURLM_STATE_CONNECT);
-            result = CURLM_CALL_MULTI_PERFORM;
-            newurl = NULL; /* handed over the memory ownership to
-                              Curl_follow(), make sure we don't free() it
-                              here */
+            if(CURLE_OK == easy->result) {
+              multistate(easy, CURLM_STATE_CONNECT);
+              result = CURLM_CALL_MULTI_PERFORM;
+              newurl = NULL; /* handed over the memory ownership to
+                                Curl_follow(), make sure we don't free() it
+                                here */
+            }
           }
         }
         else {