invert strcasestr test

This commit is contained in:
Ron Pedde 2004-10-27 04:01:33 +00:00
parent 5134ce2154
commit e76fe090f8

View File

@ -579,7 +579,7 @@ static int string_query(query_node_t* query, void* target)
}
case qot_contains:
return !strcasestr(ts, query->right.str);
return (int) strcasestr(ts, query->right.str); /* returns null if not found */
default:
DPRINTF(ERR_LOG, "Illegal query type: %d\n", query->type);