diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 17:01:30 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-10 22:17:43 +0100 |
| commit | 0e23ba9e5a565e34fee0f024e29ce162f420ec22 (patch) | |
| tree | eeaf0ec198ba8849117c9c21675a651e8c93acad /serialize/world-reader.cpp | |
| parent | 67f0ff04d0fb71255d35bf7f31a684d7a2120c2a (diff) | |
add github action
Diffstat (limited to 'serialize/world-reader.cpp')
| -rw-r--r-- | serialize/world-reader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/serialize/world-reader.cpp b/serialize/world-reader.cpp index e55ea059..615aba0d 100644 --- a/serialize/world-reader.cpp +++ b/serialize/world-reader.cpp @@ -118,10 +118,11 @@ world world::deserialize(StringView filename) { char errbuf[128]; constexpr auto strerror = []<std::size_t N> (char (&buf)[N]) -> const char* { + buf[0] = '\0'; #ifndef _WIN32 - ::strerror_r(errno, buf, std::size(buf)); + (void)::strerror_r(errno, buf, std::size(buf)); #else - ::strerror_s(buf, std::size(buf), errno); + (void)::strerror_s(buf, std::size(buf), errno); #endif return buf; }; |
