Fix warnings of ordered comparison of pointer with integer zero