mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.1046: the "secure" variable is used inconsistently
Problem: the "secure" variable is used inconsistently. (Justin M. Keyes) Solution: Set it to one instead of incrementing.
This commit is contained in:
@@ -5498,7 +5498,7 @@ chk_modeline(
|
||||
current_sctx.sc_lnum = 0;
|
||||
#endif
|
||||
// Make sure no risky things are executed as a side effect.
|
||||
++secure;
|
||||
secure = 1;
|
||||
|
||||
retval = do_set(s, OPT_MODELINE | OPT_LOCAL | flags);
|
||||
|
||||
|
Reference in New Issue
Block a user