]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix an unused-variable warning
authorNick Mathewson <nickm@torproject.org>
Sat, 27 Feb 2016 09:20:15 +0000 (10:20 +0100)
committerNick Mathewson <nickm@torproject.org>
Sat, 27 Feb 2016 09:20:15 +0000 (10:20 +0100)
src/common/util.c

index 5713235085ac223d56af776fea53c991e2937b2c..2bb2c2b766362b0f6259eedd04326977ca761435 100644 (file)
@@ -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;