From 1ac2df7d4bd3323fbbe5cfbc49214ceb99d6e140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 8 Jun 2006 10:45:04 +0000 Subject: fixed search svn path=/trunk/externals/zexy/; revision=5179 --- src/msgfile.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/msgfile.c b/src/msgfile.c index ce6c756..29c3121 100644 --- a/src/msgfile.c +++ b/src/msgfile.c @@ -435,7 +435,6 @@ static void msgfile_find(t_msgfile *x, t_symbol *s, int ac, t_atom *av) { t_msglist *found = 0; t_msglist *cur=x->current; - ZEXY_USEVAR(s); while (cur) { int n = cur->n; @@ -443,11 +442,14 @@ static void msgfile_find(t_msgfile *x, t_symbol *s, int ac, t_atom *av) t_atom *that = av; t_atom *this = cur->thislist; - if(0==this)continue; + if(0==this){ + cur=cur->next; + continue; + } if (ac < n) n = ac; - while (n--) { + while (n-->0) { if ( (strcmp("*", atom_getsymbol(that)->s_name) && atomcmp(that, this)) ) { equal = 0; } -- cgit v1.2.1