[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix a windows compilation warning from sandboxing branch
commit f4db0f429a47be9ab5f555333a0031fa67a2728a
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Fri Sep 13 12:43:18 2013 -0400
Fix a windows compilation warning from sandboxing branch
---
src/common/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/util.c b/src/common/util.c
index 02c51a4..a45011f 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)))
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits