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:
parent
028c011760
commit
783c99516a
1 changed files with 2 additions and 0 deletions
|
@ -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++))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue