From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13693 invoked from network); 21 Nov 1998 21:25:58 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 21 Nov 1998 21:25:58 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id QAA12318; Sat, 21 Nov 1998 16:24:34 -0500 (EST) Resent-Date: Sat, 21 Nov 1998 16:24:34 -0500 (EST) From: "Bart Schaefer" Message-Id: <981121132313.ZM26972@candle.brasslantern.com> Date: Sat, 21 Nov 1998 13:23:13 -0800 X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@math.gatech.edu Subject: PATCH: 3.1.5 - Bug in scanmatchtable() in hashtable.c MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"jhQRr.0.M03.I-oLs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4674 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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