From b825bce61d24963f5b9c9c94d89e306640ac104b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 24 May 2011 10:52:38 -0700 Subject: [PATCH] notmuch reply: Avoid segmentation fault when printing multiple parts The code was previously trying to print a NULL string in this case, which is obviously what we don't want to do. --- show-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show-message.c b/show-message.c index 32bb860f..2ec9eca9 100644 --- a/show-message.c +++ b/show-message.c @@ -46,7 +46,7 @@ show_message_part (GMimeObject *part, selected = (params->part <= 0 || state->part_count == params->part); if (selected || state->in_zone) { - if (!first && (params->part <= 0 || state->in_zone)) + if (!first && (params->part <= 0 || state->in_zone) && format->part_sep) fputs (format->part_sep, stdout); format->part (part, &(state->part_count));