Fix up compiler warning for comparing int to NULL