summaryrefslogtreecommitdiffstats
path: root/util/system/mktemp.cpp
diff options
context:
space:
mode:
authorlsurn <[email protected]>2022-02-10 16:49:33 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:33 +0300
commitd8825989a7621fc7275e8cfdba16b4f699fb6359 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/mktemp.cpp
parent45e70bb2432018a4704845621cd9ddd2ceab6ffb (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/mktemp.cpp')
-rw-r--r--util/system/mktemp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/mktemp.cpp b/util/system/mktemp.cpp
index 77654f1f2c5..505b7b4a4b2 100644
--- a/util/system/mktemp.cpp
+++ b/util/system/mktemp.cpp
@@ -36,7 +36,7 @@ TString MakeTempName(const char* wrkDir, const char* prefix, const char* extensi
}
filePath += "XXXXXX"; // mkstemps requirement
-
+
size_t extensionPartLength = 0;
if (extension && *extension) {
if (extension[0] != '.') {
@@ -49,7 +49,7 @@ TString MakeTempName(const char* wrkDir, const char* prefix, const char* extensi
int fd = mkstemps(const_cast<char*>(filePath.data()), extensionPartLength);
if (fd >= 0) {
- close(fd);
+ close(fd);
return filePath;
}
#else