about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/glob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/glob.c b/Src/glob.c
index 76f23cdb6..aa82b91c1 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -1537,7 +1537,7 @@ zglob(LinkList list, LinkNode np, int nountok)
 		newquals->next = quals;
 		quals = qn;
 	    }
-	} else
+	} else if (newquals)
 	    quals = newquals;
     }
     q = parsepat(str);