AK: LogStream should handle being passed a null const char*

This commit is contained in:
Andreas Kling 2020-03-04 19:25:57 +01:00
parent 028c011760
commit 783c99516a
Notes: sideshowbarker 2024-07-19 08:54:39 +09:00

View file

@ -85,6 +85,8 @@ public:
inline const LogStream& operator<<(const LogStream& stream, const char* value)
{
if (!value)
return stream << "(null)";
int length = 0;
const char* p = value;
while (*(p++))