aboutsummaryrefslogtreecommitdiffhomepage
path: root/sprinter-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprinter-text.c')
-rw-r--r--sprinter-text.c2
1 files changed, 2 insertions, 0 deletions
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));
}