diff options
author | larrybr <larrybr@noemail.net> | 2023-04-22 11:33:27 +0000 |
---|---|---|
committer | larrybr <larrybr@noemail.net> | 2023-04-22 11:33:27 +0000 |
commit | 1a2c7f9029b94a08bcec2511e08b4a0faf7973d5 (patch) | |
tree | 8fc62320053558b8914bf6b1d92dca0ea8a4c206 /src | |
parent | d9eb39e6257aba89b84de00069baeb0bd85afca1 (diff) | |
download | sqlite-1a2c7f9029b94a08bcec2511e08b4a0faf7973d5.tar.gz sqlite-1a2c7f9029b94a08bcec2511e08b4a0faf7973d5.zip |
Also fix no-length string intolerance for CLI json mode.
FossilOrigin-Name: 3ac1984039a50445ff65db97468a5313d7f09db7b604755e444b77ac9346ea76
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-- ){ |