Apparently you can't use add empty strings as printf() parameters.

This commit is contained in:
Relintai 2022-02-06 10:11:20 +01:00
parent 3b4d7a723d
commit aee3bd76c8

View File

@ -1271,6 +1271,11 @@ std::string String::to_string() const {
}
void String::print() const {
if (_size == 0) {
::printf("\n");
return;
}
::printf("%s\n", c_str());
}