summaryrefslogtreecommitdiff
path: root/Kernel/CoreDump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/CoreDump.cpp')
-rw-r--r--Kernel/CoreDump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/CoreDump.cpp b/Kernel/CoreDump.cpp
index 6c79afe365..5a8cccc489 100644
--- a/Kernel/CoreDump.cpp
+++ b/Kernel/CoreDump.cpp
@@ -45,12 +45,12 @@ OwnPtr<CoreDump> CoreDump::create(NonnullRefPtr<Process> process, const String&
{
if (!process->is_dumpable()) {
dbgln("Refusing to generate CoreDump for non-dumpable process {}", process->pid().value());
- return nullptr;
+ return {};
}
auto fd = create_target_file(process, output_path);
if (!fd)
- return nullptr;
+ return {};
return adopt_own(*new CoreDump(move(process), fd.release_nonnull()));
}