sal/osl/unx/backtraceapi.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 53165f584ff777df429fc43a451614d88914627d Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Sep 13 14:13:15 2021 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Sep 13 15:56:16 2021 +0200 loplugin:simplifypointertobool Change-Id: I0186e8f1566ec2e4cec768cc18bdeba0bae182b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122033 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sal/osl/unx/backtraceapi.cxx b/sal/osl/unx/backtraceapi.cxx index 1868ae7132bb..79fa3adf7296 100644 --- a/sal/osl/unx/backtraceapi.cxx +++ b/sal/osl/unx/backtraceapi.cxx @@ -238,7 +238,7 @@ OUString sal::backtrace_to_string(BacktraceState* backtraceState) OUString sal::backtrace_to_string(BacktraceState* backtraceState) { std::unique_ptr<char*, decltype(free)*> b2{backtrace_symbols(backtraceState->buffer, backtraceState->nDepth), free}; - if (b2.get() == nullptr) { + if (!b2) { return OUString(); } OUStringBuffer b3;