diff options
author | tesseract <tesseract@yandex-team.com> | 2023-03-20 08:23:18 +0300 |
---|---|---|
committer | tesseract <tesseract@yandex-team.com> | 2023-03-20 08:23:18 +0300 |
commit | 5013afaf77cfebd684bba57a052c5c997c61420c (patch) | |
tree | 1a4a84791e7ad8e8e8220e3bfcc41efd97de3822 /library | |
parent | 6e1e9601dd8236ed2cd6df8cc59f9dfeaa475ba6 (diff) | |
download | ydb-5013afaf77cfebd684bba57a052c5c997c61420c.tar.gz |
Поправить ошибку MemorySanitizer: use-of-uninitialized-value
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/packedtypes/longs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/packedtypes/longs.h b/library/cpp/packedtypes/longs.h index 084098d705..e23b9416b6 100644 --- a/library/cpp/packedtypes/longs.h +++ b/library/cpp/packedtypes/longs.h @@ -275,13 +275,13 @@ struct mem_traits { MACRO_END inline int in_long(i64& longVal, const char* ptrBuf) { - int ret; + int ret = 0; UNPACK_64(longVal, ptrBuf, mem_traits, ret); return ret; } inline int out_long(const i64& longVal, char* ptrBuf) { - int ret; + int ret = 0; PACK_64(longVal, ptrBuf, mem_traits, ret); /*7*/ return ret; } @@ -291,13 +291,13 @@ inline int len_long(const i64& longVal) { } inline int in_long(i32& longVal, const char* ptrBuf) { - int ret; + int ret = 0; UNPACK_32(longVal, ptrBuf, mem_traits, ret); return ret; } inline int out_long(const i32& longVal, char* ptrBuf) { - int ret; + int ret = 0; PACK_32(longVal, ptrBuf, mem_traits, ret); return ret; } |