Fix incorrect strcmp() return value check