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:
c9f9f60
)
imap: Tidied up the final FETCH response function
author
Steve Holme
<steve_holme@hotmail.com>
Wed, 6 Mar 2013 20:19:46 +0000
(20:19 +0000)
committer
Steve Holme
<steve_holme@hotmail.com>
Wed, 6 Mar 2013 20:19:46 +0000
(20:19 +0000)
Removed unnecessary state change on failure and setting of result code on
success.
lib/imap.c
patch
|
blob
|
history
diff --git
a/lib/imap.c
b/lib/imap.c
index 3130e1abb5eed45b76e863ca7611bc66e89eace3..894d044e44b2b3a18d98c60a9ad8a5ffa5f59470 100644
(file)
--- a/
lib/imap.c
+++ b/
lib/imap.c
@@
-1487,10
+1487,8
@@
static CURLcode imap_state_fetch_final_resp(struct connectdata *conn,
if(imapcode != 'O')
result = CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: Fix error code */
else
- result = CURLE_OK;
-
- /* End of DONE phase */
- state(conn, IMAP_STOP);
+ /* End of DONE phase */
+ state(conn, IMAP_STOP);
return result;
}