emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 4bb8e28: * src/json.c (json_parse_error): Fix embar


From: Philipp Stephani
Subject: [Emacs-diffs] master 4bb8e28: * src/json.c (json_parse_error): Fix embarrassing bug.
Date: Wed, 20 Dec 2017 12:30:38 -0500 (EST)

branch: master
commit 4bb8e2879d31aa0e7ead0b384959c85b4ccc7c0c
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>

    * src/json.c (json_parse_error): Fix embarrassing bug.
---
 src/json.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/json.c b/src/json.c
index 1c9bf6d..6d82222 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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]