]> git.notmuchmail.org Git - notmuch/blobdiff - sprinter-text.c
sprinters: bugfix when NULL passed for a string.
[notmuch] / sprinter-text.c
index dfa54b5706981293ea5cf14a91ceb28137a081fb..10343be4b4f1dafe514afa25281586631b376a89 100644 (file)
@@ -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));
 }