mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Don't stomp on errno.
This commit is contained in:
parent
57ed459b0d
commit
f998590e5b
1 changed files with 2 additions and 1 deletions
|
@ -1654,7 +1654,8 @@ alloc_getcwd(void)
|
|||
path = tor_realloc(path, path_length);
|
||||
} else {
|
||||
tor_free(path);
|
||||
return NULL;
|
||||
path = NULL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
errno = saved_errno;
|
||||
|
|
Loading…
Add table
Reference in a new issue