[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit f998590e5b02ca7e0d2224c600a877c93a3ab2e9
Author: Linus Nordberg <linus@xxxxxxxxxxx>
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;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits