diff options
author | David CARLIER <[email protected]> | 2021-02-22 21:50:03 +0000 |
---|---|---|
committer | David CARLIER <[email protected]> | 2021-02-22 21:50:03 +0000 |
commit | 29c7c73725c3dd80414876949a25d7ec720fecbf (patch) | |
tree | baccb0719144a039d322318f1675df9c1c5b264b | |
parent | 19b15c451ce3073be89723e172fc73234c15db58 (diff) |
we re not exploiting the error returned, discarding it.
-rw-r--r-- | src/cli/sandbox.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cli/sandbox.cpp b/src/cli/sandbox.cpp index d49c16139..52f4a1943 100644 --- a/src/cli/sandbox.cpp +++ b/src/cli/sandbox.cpp @@ -109,10 +109,8 @@ bool Sandbox::init() return true; #elif defined(BOTAN_TARGET_OS_HAS_SANDBOX_PROC) - char *errbuf = nullptr; - if (::sandbox_init(kSBXProfileNoWriteExceptTemporary, SANDBOX_NAMED, &errbuf) < 0) + if (::sandbox_init(kSBXProfileNoWriteExceptTemporary, SANDBOX_NAMED, nullptr) < 0) { - ::sandbox_free_error(errbuf); return false; } |