diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-24 14:02:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-24 14:02:04 +0100 |
commit | 82b033eff82d3ed0da77fd5f5a1c023766acabba (patch) | |
tree | 044982426b63e83769cda707b56da4d5c2b9d2b5 /src/buffer.c | |
parent | 63dbfd33c1d47400c62775842b5b750ee69e2383 (diff) |
patch 8.1.1046: the "secure" variable is used inconsistentlyv8.1.1046
Problem: the "secure" variable is used inconsistently. (Justin M. Keyes)
Solution: Set it to one instead of incrementing.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 158c30a5a1..6cfa41fab6 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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); |