Fix crash when saving empty json string

This commit is contained in:
Wojtek Figat
2025-10-08 22:02:05 +02:00
parent deb2ad7c8f
commit 7ab6bafe39

View File

@@ -108,7 +108,6 @@ public:
}
bool String(const Ch* str, SizeType length, bool copy = false) {
RAPIDJSON_ASSERT(str != 0);
(void)copy;
PrettyPrefix(kStringType);
return Base::EndValue(Base::WriteString(str, length));