I think this condition is always true.  If the column value is equal to the scalar then strstr shall find a match at the start and return non-NULL; otherwise, whether or not strstr does find a match, strcmp() shall return non-zero so the second half of the test passes.
I imagine this means the condition doesn't say what you meant !