mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-30 17:23:44 -04:00
invert strcasestr test
This commit is contained in:
parent
5134ce2154
commit
e76fe090f8
@ -579,7 +579,7 @@ static int string_query(query_node_t* query, void* target)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case qot_contains:
|
case qot_contains:
|
||||||
return !strcasestr(ts, query->right.str);
|
return (int) strcasestr(ts, query->right.str); /* returns null if not found */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
DPRINTF(ERR_LOG, "Illegal query type: %d\n", query->type);
|
DPRINTF(ERR_LOG, "Illegal query type: %d\n", query->type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user