diff options
Diffstat (limited to 'src/common')
-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 6c833f163c..c18b4177f9 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; |