diff options
author | lsurn <lsurn@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
commit | 45e70bb2432018a4704845621cd9ddd2ceab6ffb (patch) | |
tree | a152f2e39b9786afe16c2a9230f7c4b12a59e4ee /util/system/mktemp.cpp | |
parent | 47a7e7b29636bfb2deb1df5f92363b3c75229c95 (diff) | |
download | ydb-45e70bb2432018a4704845621cd9ddd2ceab6ffb.tar.gz |
Restoring authorship annotation for <lsurn@yandex-team.ru>. Commit 1 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 505b7b4a4b..77654f1f2c 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 |