aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-06-03 20:13:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-06-03 20:23:01 +0200
commit239b58d34d323e8cf38b7be13a32dda188fec5d7 (patch)
tree62d7fd7b9ab8018f76d8b26cb8a5fd2528a24542
parent74f1810546be553edc690919d018f5c92e5b02c7 (diff)
multi_runsingle: switch an if() condition for readability
... because there's an identical check right next to it so using the operators in the check in the same order increases readability.
-rw-r--r--lib/multi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index a5a5798d2..ef4038306 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -1529,7 +1529,7 @@ 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(CURLE_OK == easy->result) {
easy->result = Curl_follow(data, newurl, follow);
if(CURLE_OK == easy->result) {
multistate(easy, CURLM_STATE_CONNECT);