[or-cvs] Do not free a constant string.
Nick Mathewson
nickm at seul.org
Thu Dec 8 04:01:40 UTC 2005
Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv4675/src/common
Modified Files:
util.c
Log Message:
Do not free a constant string.
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -d -r1.237 -r1.238
--- util.c 5 Dec 2005 01:30:11 -0000 1.237
+++ util.c 8 Dec 2005 04:01:37 -0000 1.238
@@ -917,7 +917,7 @@
char *process_ownername = NULL;
pw = getpwuid(getuid());
- process_ownername = pw ? tor_strdup(pw->pw_name) : "<unknown>";
+ process_ownername = pw ? tor_strdup(pw->pw_name) : tor_strdup("<unknown>");
pw = getpwuid(st.st_uid);
More information about the tor-commits
mailing list