Check for NULL character, not for NULL pointer