AK: LogStream should handle being passed a null const char*
This commit is contained in:
parent
028c011760
commit
783c99516a
Notes:
sideshowbarker
2024-07-19 08:54:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/783c99516a9
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
Reference in a new issue