summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/json.sh b/json.sh
index dd24358..1bdc908 100644
--- a/json.sh
+++ b/json.sh
@@ -183,6 +183,9 @@ _json_string() {
"$_json_token" "$1" "$_json_strval"
return
;;
+ '' )
+ _json_error 'unexpected EOF in string'
+ ;;
* )
# Consume multiple characters at once,
# or else this is horribly slow.