diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-12-08 04:01:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-12-08 04:01:37 +0000 |
commit | cf5facf3e147dab548f46ed479f763ea1f771a7d (patch) | |
tree | 49e4097275f532e9609efdce00bf1d69be06c44a /src | |
parent | 0a85bb5a1cf38572198a14b713c3dec7f2d4ef37 (diff) | |
download | tor-cf5facf3e147dab548f46ed479f763ea1f771a7d.tar.gz tor-cf5facf3e147dab548f46ed479f763ea1f771a7d.zip |
Do not free a constant string.
svn:r5527
Diffstat (limited to 'src')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 7baf6643dc..96155e68cb 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -917,7 +917,7 @@ check_private_dir(const char *dirname, cpd_check_t check) 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); |