Cosmetic change: replace 0 with NULL

Compare pointers to NULL rather than 0 (for clarity).