gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 215/256: mime: rephrase the multipart output state


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 215/256: mime: rephrase the multipart output state machine (#1898) ...
Date: Fri, 06 Oct 2017 19:45:06 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit a7bcf274ccf3dd6eca86c5fbdf2d568690e0c494
Author: Patrick Monnerat <address@hidden>
AuthorDate: Wed Sep 20 14:06:47 2017 +0100

    mime: rephrase the multipart output state machine (#1898) ...
    
    ... in hope coverity will like it much.
---
 lib/mime.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/mime.c b/lib/mime.c
index 4eeb8375d..03ccfc200 100644
--- a/lib/mime.c
+++ b/lib/mime.c
@@ -972,11 +972,14 @@ static size_t mime_subparts_read(char *buffer, size_t 
size, size_t nitems,
           convbuf = buffer;
         }
 #endif
-        mimesetstate(&mime->state,
-                     part? MIMESTATE_CONTENT: MIMESTATE_END, part);
+        mimesetstate(&mime->state, MIMESTATE_CONTENT, part);
       }
       break;
     case MIMESTATE_CONTENT:
+      if(!part) {
+        mimesetstate(&mime->state, MIMESTATE_END, NULL);
+        break;
+      }
       sz = readback_part(part, buffer, nitems);
       switch(sz) {
       case CURL_READFUNC_ABORT:

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]