summaryrefslogtreecommitdiffstats
path: root/src/proto/cmdexpand.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-05 14:38:40 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-05 14:38:40 +0100
commit61d7c0d52ca40ab8488c36e619d1e46503affd0b (patch)
tree89d987f2a9269a8f173130fc54ee33894a2b6892 /src/proto/cmdexpand.pro
parentab782c5b6f127b84f56e546004352de66e7cf66b (diff)
patch 8.2.0087: crash in command line expansion when out of memoryv8.2.0087
Problem: Crash in command line expansion when out of memory. Solution: Check for NULL pointer. Also make ExpandGeneric() static. (Dominique Pelle, closes #5437)
Diffstat (limited to 'src/proto/cmdexpand.pro')
-rw-r--r--src/proto/cmdexpand.pro1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/proto/cmdexpand.pro b/src/proto/cmdexpand.pro
index f2cea9ff9c..523565942d 100644
--- a/src/proto/cmdexpand.pro
+++ b/src/proto/cmdexpand.pro
@@ -8,7 +8,6 @@ char_u *sm_gettail(char_u *s);
char_u *addstar(char_u *fname, int len, int context);
void set_cmd_context(expand_T *xp, char_u *str, int len, int col, int use_ccline);
int expand_cmdline(expand_T *xp, char_u *str, int col, int *matchcount, char_u ***matches);
-int ExpandGeneric(expand_T *xp, regmatch_T *regmatch, int *num_file, char_u ***file, char_u *((*func)(expand_T *, int)), int escaped);
void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options);
void f_getcompletion(typval_T *argvars, typval_T *rettv);
/* vim: set ft=c : */