]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/json.c (json_parse_error): Fix embarrassing bug.
authorPhilipp Stephani <phst@google.com>
Wed, 20 Dec 2017 17:30:23 +0000 (18:30 +0100)
committerPhilipp Stephani <phst@google.com>
Wed, 20 Dec 2017 17:30:23 +0000 (18:30 +0100)
src/json.c

index 1c9bf6d49bd3f8a9b17262272db20f2cf0e37f55..6d822224b217f12266c18528eafd97e2b616e941 100644 (file)
@@ -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"))