Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: 3.1.5 - Bug in scanmatchtable() in hashtable.c
- X-seq: zsh-workers 4674
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: PATCH: 3.1.5 - Bug in scanmatchtable() in hashtable.c
- Date: Sat, 21 Nov 1998 13:23:13 -0800
There's a missing set of braces around the body of an "if". This patch
makes the code match 3.0.5.
Index: Src/hashtable.c
===================================================================
--- hashtable.c 1998/11/16 18:31:11 1.5
+++ hashtable.c 1998/11/21 21:20:23
@@ -414,9 +414,10 @@
HashNode hn = st.u.u;
st.u.u = st.u.u->next;
if ((hn->flags & flags1) + !flags1 && !(hn->flags & flags2) &&
- domatch(hn->nam, com, 0))
+ domatch(hn->nam, com, 0)) {
scanfunc(hn, scanflags);
match++;
+ }
}
ht->scan = NULL;
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author