Don't call memcmp with a NULL pointer