Don't stomp on errno.

This commit is contained in:
Linus Nordberg 2012-05-29 15:38:03 +02:00
parent 57ed459b0d
commit f998590e5b

View File

@ -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;