diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index f9669dc9c..1eb8c340d 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -1988,6 +1988,7 @@ static void output_c_string(FILE *out, const char *z){ */ static void output_json_string(FILE *out, const char *z, i64 n){ unsigned int c; + if( z==0 ) z = ""; if( n<0 ) n = strlen(z); fputc('"', out); while( n-- ){ |