From 5072cd2295b18a38d6e918ba501c4558b7a9738c Mon Sep 17 00:00:00 2001 From: Thomas Dreibholz Date: Sun, 13 Oct 2024 14:18:26 +0200 Subject: [PATCH] Bugfix: Do not try to create results directory if results are not going to be written into a file. --- src/service.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/service.cc b/src/service.cc index 0a89b0f6..c5c7c4b6 100644 --- a/src/service.cc +++ b/src/service.cc @@ -64,7 +64,9 @@ bool Service::prepare(const bool privileged) { if(privileged == false) { // No special privileges needed for preparing files. - return ResultsOutput->prepare(); + if(ResultsOutput != nullptr) { + return ResultsOutput->prepare(); + } } return true; }