summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 5713235085..2bb2c2b766 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2056,13 +2056,13 @@ int
check_private_dir(const char *dirname, cpd_check_t check,
const char *effective_user)
{
- int fd;
int r;
struct stat st;
tor_assert(dirname);
#ifndef _WIN32
+ int fd;
unsigned unwanted_bits = 0;
const struct passwd *pw = NULL;
uid_t running_uid;