zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: 3.1.5 - Bug in scanmatchtable() in hashtable.c
@ 1998-11-21 21:23 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 1998-11-21 21:23 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-11-21 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-21 21:23 PATCH: 3.1.5 - Bug in scanmatchtable() in hashtable.c Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).