diff options
author | Linus Nordberg <linus@nordberg.se> | 2012-05-29 15:38:03 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2012-05-29 15:38:03 +0200 |
commit | f998590e5b02ca7e0d2224c600a877c93a3ab2e9 (patch) | |
tree | e75bfd9241ce1acc3acb3167c1883d39371545d5 /src | |
parent | 57ed459b0d675d255ae452749bee9efa3c498a5b (diff) | |
download | tor-f998590e5b02ca7e0d2224c600a877c93a3ab2e9.tar tor-f998590e5b02ca7e0d2224c600a877c93a3ab2e9.tar.gz |
Don't stomp on errno.
Diffstat (limited to 'src')
-rw-r--r-- | 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 6c833f163..c18b4177f 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; |