Don't assign NULL to int, Clang complains