From 29852fe2145abdae0da87113dbea37b81dc5d58f Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 8 Nov 2008 06:31:01 +0000 Subject: unposted: revert 26014. --- Src/glob.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Src/glob.c') diff --git a/Src/glob.c b/Src/glob.c index ce7de1ed6..f8d7b5ad0 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -693,13 +693,11 @@ parsecomplist(char *instr) if (*(str = instr) == Inpar && !skipparens(Inpar, Outpar, (char **)&str) && *str == Pound && isset(EXTENDEDGLOB) && str[-2] == '/') { instr++; - + if (!(p1 = patcompile(instr, compflags, &instr))) + return NULL; if (instr[0] == '/' && instr[1] == Outpar && instr[2] == Pound) { int pdflag = 0; - if (!(p1 = patcompile(instr, compflags, &instr))) - return NULL; - instr += 3; if (*instr == Pound) { pdflag = 1; -- cgit 1.4.1