Fix warning for NULL to non pointer variable