summaryrefslogtreecommitdiff
path: root/src/proto/option.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-23 12:06:00 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-23 12:06:00 +0000
commit4791fcd82565adcc60b86830e0bb6cd5b6eea0a6 (patch)
tree8d9a1ba4631efb742ea1617c99b61e0c3f85322c /src/proto/option.pro
parent2dada73a4ebffe2582af472ce362abd3116b58c9 (diff)
downloadvim-git-4791fcd82565adcc60b86830e0bb6cd5b6eea0a6.tar.gz
patch 8.2.4453: :helpgrep may free an option that was not allocatedv8.2.4453
Problem: :helpgrep may free an option that was not allocated. (Yegappan Lakshmanan) Solution: Check if the value was allocated.
Diffstat (limited to 'src/proto/option.pro')
-rw-r--r--src/proto/option.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/option.pro b/src/proto/option.pro
index 11f342c3f..b58e79afe 100644
--- a/src/proto/option.pro
+++ b/src/proto/option.pro
@@ -41,6 +41,7 @@ char *set_option_value(char_u *name, long number, char_u *string, int opt_flags)
char_u *get_term_code(char_u *tname);
char_u *get_highlight_default(void);
char_u *get_encoding_default(void);
+int is_option_allocated(char *name);
int makeset(FILE *fd, int opt_flags, int local_only);
int makefoldset(FILE *fd);
void clear_termoptions(void);