diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-09-13 12:43:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-09-13 12:43:18 -0400 |
commit | f4db0f429a47be9ab5f555333a0031fa67a2728a (patch) | |
tree | 229af2c197216840eb4b37da9ce8bc666018210f /src/common | |
parent | e35c972851686b5f6f2181e4eddb592f07fd7587 (diff) | |
download | tor-f4db0f429a47be9ab5f555333a0031fa67a2728a.tar.gz tor-f4db0f429a47be9ab5f555333a0031fa67a2728a.zip |
Fix a windows compilation warning from sandboxing branch
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 02c51a4518..a45011fc4c 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -3040,7 +3040,6 @@ smartlist_t * tor_listdir(const char *dirname) { smartlist_t *result; - const char *prot_dname = sandbox_intern_string(dirname); #ifdef _WIN32 char *pattern=NULL; TCHAR tpattern[MAX_PATH] = {0}; @@ -3082,6 +3081,7 @@ tor_listdir(const char *dirname) FindClose(handle); tor_free(pattern); #else + const char *prot_dname = sandbox_intern_string(dirname); DIR *d; struct dirent *de; if (!(d = opendir(prot_dname))) |