Another stab at #10152

This commit is contained in:
Kovid Goyal
2026-06-16 05:43:25 +05:30
parent 1dc3730782
commit bdfcfc4fc2

View File

@@ -96,7 +96,8 @@ polymorphic_string_as_utf8(id string) {
characters = [string string];
else
characters = (NSString*) string;
return [characters UTF8String];
const char* ans = [characters UTF8String];
return ans ? ans : "(nil)";
}
static bool