diff options
Diffstat (limited to 'Userland/Services/FileOperation/main.cpp')
-rw-r--r-- | Userland/Services/FileOperation/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/FileOperation/main.cpp b/Userland/Services/FileOperation/main.cpp index 632f7e721c..44919a9a5f 100644 --- a/Userland/Services/FileOperation/main.cpp +++ b/Userland/Services/FileOperation/main.cpp @@ -143,7 +143,7 @@ int perform_copy(const String& source, const String& destination) while (true) { print_progress(); auto buffer = source_file.read(65536); - if (buffer.is_null()) + if (buffer.is_empty()) break; if (!destination_file.write(buffer)) { report_warning(String::formatted("Failed to write to destination file: {}", destination_file.error_string())); |