mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
Don't stomp on errno.
This commit is contained in:
parent
57ed459b0d
commit
f998590e5b
@ -1654,7 +1654,8 @@ alloc_getcwd(void)
|
|||||||
path = tor_realloc(path, path_length);
|
path = tor_realloc(path, path_length);
|
||||||
} else {
|
} else {
|
||||||
tor_free(path);
|
tor_free(path);
|
||||||
return NULL;
|
path = NULL;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
errno = saved_errno;
|
errno = saved_errno;
|
||||||
|
Loading…
Reference in New Issue
Block a user