The bug searched for is using the assignment operator = instead of the equality operator ==.
But something like:
if (errno = 0) { blah(); }
is almost certainly a bug.
The bug searched for is using the assignment operator = instead of the equality operator ==.