about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/glob.c6
1 files changed, 2 insertions, 4 deletions
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;