mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
916c2aa624
commit
b825bce61d
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ show_message_part (GMimeObject *part,
|
||||||
selected = (params->part <= 0 || state->part_count == params->part);
|
selected = (params->part <= 0 || state->part_count == params->part);
|
||||||
|
|
||||||
if (selected || state->in_zone) {
|
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);
|
fputs (format->part_sep, stdout);
|
||||||
|
|
||||||
format->part (part, &(state->part_count));
|
format->part (part, &(state->part_count));
|
||||||
|
|
Loading…
Reference in a new issue