projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74f1810
)
multi_runsingle: switch an if() condition for readability
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 3 Jun 2013 18:13:35 +0000
(20:13 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 3 Jun 2013 18:23:01 +0000
(20:23 +0200)
... because there's an identical check right next to it so using the
operators in the check in the same order increases readability.
lib/multi.c
patch
|
blob
|
history
diff --git
a/lib/multi.c
b/lib/multi.c
index a5a5798d2e51c67e37dd82bb19f6c50584f990f0..ef4038306c9c822cb6b71d8150279f4dfcbdb27d 100644
(file)
--- 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);