1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

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

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++))