X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=sprinter-text.c;h=10343be4b4f1dafe514afa25281586631b376a89;hp=dfa54b5706981293ea5cf14a91ceb28137a081fb;hb=9ff72a83bda69e6c064bd8be9f201a4626bff54e;hpb=14883b07003b9ed4223cd8f2c03b301fddae07bd diff --git a/sprinter-text.c b/sprinter-text.c index dfa54b57..10343be4 100644 --- a/sprinter-text.c +++ b/sprinter-text.c @@ -38,6 +38,8 @@ text_string_len (struct sprinter *sp, const char *val, size_t len) static void text_string (struct sprinter *sp, const char *val) { + if (val == NULL) + val = ""; text_string_len (sp, val, strlen (val)); }