summaryrefslogtreecommitdiffstats
path: root/util/folder/dirut.cpp
diff options
context:
space:
mode:
authoraosipenko <[email protected]>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:08 +0300
commit69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/folder/dirut.cpp
parent948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/folder/dirut.cpp')
-rw-r--r--util/folder/dirut.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp
index c05a54831ac..ffc9b09f967 100644
--- a/util/folder/dirut.cpp
+++ b/util/folder/dirut.cpp
@@ -459,7 +459,7 @@ TString GetHomeDir() {
#ifndef _win32_
passwd* pw = nullptr;
s = getenv("USER");
- if (s)
+ if (s)
pw = getpwnam(s.data());
else
pw = getpwuid(getuid());
@@ -517,7 +517,7 @@ TString GetSystemTempDir() {
const char* var = "TMPDIR";
const char* def = "/tmp";
const char* r = getenv(var);
- const char* result = r ? r : def;
+ const char* result = r ? r : def;
return result[0] == '/' ? result : ResolveDir(result);
#endif
}