diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-12 16:43:48 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-12 16:43:48 +0200 |
commit | 8feecf6c77ee94e72a14212ba0ce134b80111aae (patch) | |
tree | 970c5a34b34a0b58b62ebde6457fa9d08f9e5db2 /AK | |
parent | c98bbff0cbe3e3b80478ace3d73544914285b9e1 (diff) | |
download | serenity-8feecf6c77ee94e72a14212ba0ce134b80111aae.zip |
AK: Fix build.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/String.cpp | 2 |
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); |