mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
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: 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