summaryrefslogtreecommitdiff
path: root/mh/mhn.c
diff options
context:
space:
mode:
Diffstat (limited to 'mh/mhn.c')
-rw-r--r--mh/mhn.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mh/mhn.c b/mh/mhn.c
index 855926175..ebe0e755d 100644
--- a/mh/mhn.c
+++ b/mh/mhn.c
@@ -1047,9 +1047,15 @@ handle_message (mu_message_t msg, msg_part_t part, msg_handler_t fun, void *data
if (ismime)
{
size_t i, nparts;
-
- mu_message_get_num_parts (msg, &nparts);
-
+ int rc;
+
+ rc = mu_message_get_num_parts (msg, &nparts);
+ if (rc)
+ {
+ mu_diag_funcall (MU_DIAG_ERR, "mu_message_get_num_parts", NULL, rc);
+ return rc;
+ }
+
msg_part_incr (part);
for (i = 1; i <= nparts; i++)
{

Return to:

Send suggestions and report system problems to the System administrator.