瀏覽代碼

AK: Fix build.

Andreas Kling 6 年之前
父節點
當前提交
8feecf6c77
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AK/String.cpp

+ 1 - 1
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);