diff options
Diffstat (limited to 'strings/json_lib.c')
-rw-r--r-- | strings/json_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c index 57ac3eb15b6..139bd98742f 100644 --- a/strings/json_lib.c +++ b/strings/json_lib.c @@ -1643,6 +1643,8 @@ int json_escape(CHARSET_INFO *str_cs, return -1; } } + else /* c_len == 0, an illegal symbol. */ + return -1; } return (int)(json - json_start); |