From: Philipp Stephani Date: Wed, 20 Dec 2017 17:30:23 +0000 (+0100) Subject: * src/json.c (json_parse_error): Fix embarrassing bug. X-Git-Tag: emacs-27.0.90~5996 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4bb8e2879d31aa0e7ead0b384959c85b4ccc7c0c;p=emacs.git * src/json.c (json_parse_error): Fix embarrassing bug. --- 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) { case json_error_premature_end_of_input: symbol = Qjson_end_of_file; + break; case json_error_end_of_input_expected: symbol = Qjson_trailing_content; + break; default: symbol = Qjson_parse_error; + break; } #else if (json_has_suffix (error->text, "expected near end of file"))