Skip to content

Commit

Permalink
Bugfix: Do not try to create results directory if results are not goi…
Browse files Browse the repository at this point in the history
…ng to be written into a file.
  • Loading branch information
dreibh committed Oct 13, 2024
1 parent d19682b commit 5072cd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 5072cd2

Please sign in to comment.