[tor/master] Don't stomp on errno.

31 May
2012
31 May
'12
4:38 p.m.
commit f998590e5b02ca7e0d2224c600a877c93a3ab2e9 Author: Linus Nordberg <linus@nordberg.se> Date: Tue May 29 15:38:03 2012 +0200 Don't stomp on errno. --- src/common/compat.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/common/compat.c b/src/common/compat.c index 6c833f1..c18b417 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -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;
4754
Age (days ago)
4754
Last active (days ago)
0 comments
1 participants
participants (1)
-
nickm@torproject.org