Hi there,

If you have a rule with a NULL value in the "title" field you will fall into a 
loop.

So there is a bug in the function applyrules(Client *c) line 262,

if(strstr(c->name, r->title)
        || (ch.res_class && r->class && strstr(ch.res_class, r->class))
        || (ch.res_name && r->instance && strstr(ch.res_name, r->instance)))

should be:

if(c->name && r->title && strstr(c->name, r->title)
        || (ch.res_class && r->class && strstr(ch.res_class, r->class))
        || (ch.res_name && r->instance && strstr(ch.res_name, r->instance)))


Kind regards,
Nibble

Reply via email to