* mu-msg-part.c, mu-msg-sexp.c: handle parts with unknown (or zero) size

correctly, set :size to -1 so front-end can deal with it appropriately.
This commit is contained in:
djcb
2012-04-11 18:25:49 +03:00
parent 98b454e761
commit 8c9a1b1e3f
3 changed files with 9 additions and 8 deletions

View File

@ -49,8 +49,8 @@ struct _MuMsgPart {
/* usually, "attachment" or "inline" */
char *disposition;
/* size of the part; or <= 0 if unknown */
size_t size;
/* size of the part; or < 0 if unknown */
ssize_t size;
gpointer data; /* opaque data */