mirror of
https://github.com/Z3Prover/z3
synced 2026-07-15 03:25:43 +00:00
Adjust Windows env helper error handling
This commit is contained in:
parent
7627f77bb9
commit
4b5c61b5ac
1 changed files with 1 additions and 4 deletions
|
|
@ -1785,11 +1785,8 @@ class tptp_parser {
|
|||
char* buffer = nullptr;
|
||||
size_t len = 0;
|
||||
errno_t err = ::_dupenv_s(&buffer, &len, name);
|
||||
if (err != 0) {
|
||||
if (buffer)
|
||||
std::free(buffer);
|
||||
if (err != 0)
|
||||
return false;
|
||||
}
|
||||
if (!buffer)
|
||||
return false;
|
||||
value.assign(buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue