Compare pointers against NULL, not 0