mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
updated for version 7.4.390
Problem: Advancing pointer over end of a string. Solution: Init quote character to -1 instead of zero. (Dominique Pelle)
This commit is contained in:
@@ -5503,7 +5503,7 @@ cin_has_js_key(text)
|
||||
char_u *text;
|
||||
{
|
||||
char_u *s = skipwhite(text);
|
||||
int quote = 0;
|
||||
int quote = -1;
|
||||
|
||||
if (*s == '\'' || *s == '"')
|
||||
{
|
||||
|
Reference in New Issue
Block a user