From e05507f9596347339f524c9c2a61c8de36c79e2a Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Tue, 25 Dec 2018 20:36:24 -0500 Subject: [PATCH] fixed compiler issue on centos --- push64_relocs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/push64_relocs.cpp b/push64_relocs.cpp index 4a253e66a..19a6537b4 100644 --- a/push64_relocs.cpp +++ b/push64_relocs.cpp @@ -324,7 +324,8 @@ void Push64Relocs_t::UpdatePush64Adds() assert(insn_addr != 0); const auto insn_bytes_len = sizeof(uint8_t)*insn->GetDataBits().length(); - uint8_t insn_bytes[insn_bytes_len]={}; + uint8_t insn_bytes[insn_bytes_len]; // compiler disallows init on some platforms. + // but memcpy should init it sufficiently. memcpy(insn_bytes, insn->GetDataBits().c_str(), insn_bytes_len); const auto d=DecodedInstruction_t(insn); -- GitLab