mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 11:58:10 +01:00
Use empty strings instead of NULL in format_reply structure.
This keeps things consistent with notmuch-show, and prevents having to check for the existence of the field pointer for simple string output formats.
This commit is contained in:
parent
5659d42231
commit
757e06f74b
2 changed files with 7 additions and 7 deletions
|
@ -29,12 +29,12 @@ reply_part (GMimeObject *part,
|
|||
unused (int *part_count));
|
||||
|
||||
static const notmuch_show_format_t format_reply = {
|
||||
NULL,
|
||||
NULL, NULL,
|
||||
NULL, NULL, NULL,
|
||||
NULL, reply_part, NULL, NULL, NULL,
|
||||
NULL, NULL,
|
||||
NULL
|
||||
"",
|
||||
"", NULL,
|
||||
"", NULL, "",
|
||||
"", reply_part, NULL, "", "",
|
||||
"", "",
|
||||
""
|
||||
};
|
||||
|
||||
static void
|
||||
|
|
|
@ -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) && format->part_sep)
|
||||
if (!first && (params->part <= 0 || state->in_zone))
|
||||
fputs (format->part_sep, stdout);
|
||||
|
||||
format->part (part, &(state->part_count));
|
||||
|
|
Loading…
Reference in a new issue