aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commit19bd45eb7775ffded0c62ab05d10b7326198aaa6 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util
parent5062bdf2c2bf1b46701280e5dc5ed6d1f7bd4e3e (diff)
downloadydb-19bd45eb7775ffded0c62ab05d10b7326198aaa6.tar.gz
Restoring authorship annotation for <zdm@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util')
-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 db6df57827..f778ec42cb 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