diff options
author | lsurn <[email protected]> | 2022-02-10 16:49:33 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:33 +0300 |
commit | d8825989a7621fc7275e8cfdba16b4f699fb6359 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/mktemp.cpp | |
parent | 45e70bb2432018a4704845621cd9ddd2ceab6ffb (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/mktemp.cpp')
-rw-r--r-- | util/system/mktemp.cpp | 4 |
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 |