[or-cvs] Remove superfluous strdup

Peter Palfrader weasel at seul.org
Mon Dec 5 01:30:13 UTC 2005


Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv24678/src/common

Modified Files:
	util.c 
Log Message:
Remove superfluous strdup

Index: util.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.236
retrieving revision 1.237
diff -u -d -r1.236 -r1.237
--- util.c	5 Dec 2005 01:28:10 -0000	1.236
+++ util.c	5 Dec 2005 01:30:11 -0000	1.237
@@ -923,7 +923,7 @@
 
     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(),
-                         pw ? tor_strdup(pw->pw_name) : "<unknown>", (int)st.st_uid);
+                         pw ? pw->pw_name : "<unknown>", (int)st.st_uid);
 
     tor_free(process_ownername);
     return -1;



More information about the tor-commits mailing list