aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-06-08 10:45:04 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-06-08 10:45:04 +0000
commit1ac2df7d4bd3323fbbe5cfbc49214ceb99d6e140 (patch)
treee411ac0de13ea651553013b04f87f121697d305e
parent53648f5eaadad8e9c8c661b9871ec1178ba3534f (diff)
fixed search
svn path=/trunk/externals/zexy/; revision=5179
-rw-r--r--src/msgfile.c8
1 files changed, 5 insertions, 3 deletions
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;
}