0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1160

Problem:    No error for jsondecode('"').
Solution:   Give an error message for missing double quote.
This commit is contained in:
Bram Moolenaar
2016-01-23 22:51:07 +01:00
parent e240c2da79
commit bd4593ffb1
2 changed files with 3 additions and 0 deletions

View File

@@ -406,6 +406,7 @@ json_decode_string(js_read_T *reader, typval_T *res)
}
else
{
EMSG(_(e_invarg));
res->v_type = VAR_SPECIAL;
res->vval.v_number = VVAL_NONE;
}