glob2regpat(): handle empty string.

This commit is contained in:
Justin M. Keyes
2016-01-27 03:26:13 -05:00
parent 765d394f18
commit 894fcb778e
3 changed files with 5 additions and 1 deletions

View File

@@ -7106,6 +7106,7 @@ char_u * file_pat_to_reg_pat(
char *allow_dirs, // Result passed back out in here
int no_bslash // Don't use a backward slash as pathsep
)
FUNC_ATTR_NONNULL_ARG(1)
{
const char_u *endp;
char_u *reg_pat;