X-Git-Url: https://rtime.felk.cvut.cz/gitweb/notmuch.git/blobdiff_plain/36e640852b240ad10daed626391e1b812df89200..94c3b40d41f1ad98719d411ef28b69075fda0579:/sprinter-text.c 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)); }