mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
mime: rephrase the multipart output state machine (#1898) ...
... in hope coverity will like it much.
This commit is contained in:
parent
f304201868
commit
a7bcf274cc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user