mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
AK: LogStream should handle being passed a null const char*
This commit is contained in:
@@ -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++))
|
||||
|
||||
Reference in New Issue
Block a user