Fixed some uses of "0" that should be "NULL".