summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-12 16:43:48 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-12 16:43:48 +0200
commit8feecf6c77ee94e72a14212ba0ce134b80111aae (patch)
tree970c5a34b34a0b58b62ebde6457fa9d08f9e5db2 /AK
parentc98bbff0cbe3e3b80478ace3d73544914285b9e1 (diff)
downloadserenity-8feecf6c77ee94e72a14212ba0ce134b80111aae.zip
AK: Fix build.
Diffstat (limited to 'AK')
-rw-r--r--AK/String.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/String.cpp b/AK/String.cpp
index e6411384d6..e3fa54ff80 100644
--- a/AK/String.cpp
+++ b/AK/String.cpp
@@ -95,7 +95,7 @@ ByteBuffer String::to_byte_buffer() const
String String::from_byte_buffer(const ByteBuffer& buffer, ShouldChomp should_chomp)
{
if (buffer.is_null())
- return nullptr;
+ return { };
if (buffer.is_empty())
return empty();
return String((const char*)buffer.pointer(), buffer.size(), should_chomp);