diff options
author | Carl Worth <cworth@cworth.org> | 2011-05-24 10:52:38 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-05-24 12:19:18 -0700 |
commit | b825bce61d24963f5b9c9c94d89e306640ac104b (patch) | |
tree | bc6b697914fba2ff9a45ab04fed420891214e6da /show-message.c | |
parent | 916c2aa6247c6ef3d2a9c9c784cf4d3a5de263d0 (diff) |
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.
Diffstat (limited to 'show-message.c')
-rw-r--r-- | show-message.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |