aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorzdm <zdm@yandex-team.ru>2022-02-10 16:49:24 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:24 +0300
commit5062bdf2c2bf1b46701280e5dc5ed6d1f7bd4e3e (patch)
tree71dea1966d70ae4fc7b31cccf3a492f6efc621f7 /util/system
parent2ab6bab688484680d3ebc5c4a7e9cd3ff04fda04 (diff)
downloadydb-5062bdf2c2bf1b46701280e5dc5ed6d1f7bd4e3e.tar.gz
Restoring authorship annotation for <zdm@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/error.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/error.cpp b/util/system/error.cpp
index f778ec42cb..db6df57827 100644
--- a/util/system/error.cpp
+++ b/util/system/error.cpp
@@ -88,8 +88,8 @@ void LastSystemErrorText(char* str, size_t size, int code) {
#elif defined(_freebsd_) || defined(_darwin_) || defined(_musl_) || defined(_bionic_)
strerror_r(code, str, size);
#elif defined(_linux_) | defined(_cygwin_)
- char* msg = strerror_r(code, str, size);
- strncpy(str, msg, size);
+ char* msg = strerror_r(code, str, size);
+ strncpy(str, msg, size);
#else
#error port me gently!
#endif