Skip to content

Commit f4a5446

Browse files
codeoosfacebook-github-bot
authored andcommitted
Fix error maybe-uninitialized facebook#11100 (facebook#11101)
Summary: In this issue [11100](facebook#11100) I try to upgrade dependencies of [BaikalDB](https://github.com/baidu/BaikalDB) and tool chain to gcc-12.I found that when I build rocksdb v6.26.0(maybe I can use newer version),I found that in file trace_replay/trace_replay.cc,the compiler tell me "error mybe-uninitialized".I dound that it can be fixed very easy,so I make this pull request. Pull Request resolved: facebook#11101 Reviewed By: ajkr Differential Revision: D42583031 Pulled By: cbi42 fbshipit-source-id: 7f399f09441a30fe88b83cec5e2fd9885bad5c06
1 parent a5bcbcd commit f4a5446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trace_replay/trace_replay.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Status TracerHelper::DecodeTraceRecord(Trace* trace, int trace_file_version,
317317
cf_ids.reserve(multiget_size);
318318
multiget_keys.reserve(multiget_size);
319319
for (uint32_t i = 0; i < multiget_size; i++) {
320-
uint32_t tmp_cfid;
320+
uint32_t tmp_cfid = 0;
321321
Slice tmp_key;
322322
GetFixed32(&cfids_payload, &tmp_cfid);
323323
GetLengthPrefixedSlice(&keys_payload, &tmp_key);

0 commit comments

Comments
 (0)