diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/procmime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 6815baa5..8fdb5bf9 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -1156,19 +1156,19 @@ FILE *procmime_get_part_fp_fp(FILE *outfp, FILE *infp, MimeInfo *mimeinfo) { gchar buf[BUFFSIZE]; - g_return_val_if_fail(infp != NULL, -1); - g_return_val_if_fail(mimeinfo != NULL, -1); + g_return_val_if_fail(infp != NULL, NULL); + g_return_val_if_fail(mimeinfo != NULL, NULL); if (fseek(infp, mimeinfo->fpos, SEEK_SET) < 0) { FILE_OP_ERROR("procmime_get_part_fp()", "fseek"); - return -1; + return NULL; } while (fgets(buf, sizeof(buf), infp) != NULL) if (buf[0] == '\r' || buf[0] == '\n') break; if ((outfp = procmime_decode_content(outfp, infp, mimeinfo)) == NULL) { - return -1; + return NULL; } return outfp; |