about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/glob.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 45ef93034..de95a39c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-01-22  Peter Stephenson  <pws@csr.com>
 
+	* 16487: Src/glob.c: bug in 16486 when a qualifier in a set
+	consisted only of flags which were handled globally.
+
 	* 16486: Doc/Zsh/expn.yo, Src/glob.c, Src/pattern.c:  support
 	(#q...) EXTENDED_GLOB syntax for qualifiers.  May be chained,
 	ignored by pattern matching code.
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);