Browse Source

Remove superfluous strdup

svn:r5503
Peter Palfrader 20 years ago
parent
commit
1bf56b452e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

@@ -923,7 +923,7 @@ check_private_dir(const char *dirname, cpd_check_t check)
 
 
     log(LOG_WARN, LD_FS, "%s is not owned by this user (%s, %d) but by %s (%d). Perhaps you are running Tor as the wrong user?",
     log(LOG_WARN, LD_FS, "%s is not owned by this user (%s, %d) but by %s (%d). Perhaps you are running Tor as the wrong user?",
                          dirname, process_ownername, (int)getuid(),
                          dirname, process_ownername, (int)getuid(),
-                         pw ? tor_strdup(pw->pw_name) : "<unknown>", (int)st.st_uid);
+                         pw ? pw->pw_name : "<unknown>", (int)st.st_uid);
 
 
     tor_free(process_ownername);
     tor_free(process_ownername);
     return -1;
     return -1;