Avoid casting !NULL to ptr types to silence clang