diff options
| author | Philipp Stephani | 2017-12-20 18:30:23 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2017-12-20 18:30:23 +0100 |
| commit | 4bb8e2879d31aa0e7ead0b384959c85b4ccc7c0c (patch) | |
| tree | ab8977874c556cb5c76a3edcee6e48123bb652e0 /src/json.c | |
| parent | 909bea9e5abafde8cf1d7244503640796fbfc142 (diff) | |
| download | emacs-4bb8e2879d31aa0e7ead0b384959c85b4ccc7c0c.tar.gz emacs-4bb8e2879d31aa0e7ead0b384959c85b4ccc7c0c.zip | |
* src/json.c (json_parse_error): Fix embarrassing bug.
Diffstat (limited to 'src/json.c')
| -rw-r--r-- | src/json.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c index 1c9bf6d49bd..6d822224b21 100644 --- a/src/json.c +++ b/src/json.c | |||
| @@ -254,10 +254,13 @@ json_parse_error (const json_error_t *error) | |||
| 254 | { | 254 | { |
| 255 | case json_error_premature_end_of_input: | 255 | case json_error_premature_end_of_input: |
| 256 | symbol = Qjson_end_of_file; | 256 | symbol = Qjson_end_of_file; |
| 257 | break; | ||
| 257 | case json_error_end_of_input_expected: | 258 | case json_error_end_of_input_expected: |
| 258 | symbol = Qjson_trailing_content; | 259 | symbol = Qjson_trailing_content; |
| 260 | break; | ||
| 259 | default: | 261 | default: |
| 260 | symbol = Qjson_parse_error; | 262 | symbol = Qjson_parse_error; |
| 263 | break; | ||
| 261 | } | 264 | } |
| 262 | #else | 265 | #else |
| 263 | if (json_has_suffix (error->text, "expected near end of file")) | 266 | if (json_has_suffix (error->text, "expected near end of file")) |