From a1eff3555ac280934c0db5e4469453a1de4e34cf Mon Sep 17 00:00:00 2001 From: whh8b <whh8b@git.zephyr-software.com> Date: Fri, 24 Oct 2014 17:36:49 +0000 Subject: [PATCH] Please initialize all member variables. --- include/unresolved.h | 2 +- src/zipr.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/unresolved.h b/include/unresolved.h index 49c5d620c..a7e89d381 100644 --- a/include/unresolved.h +++ b/include/unresolved.h @@ -72,7 +72,7 @@ class UnresolvedPinned_t : public UnresolvedInfo_t { public: UnresolvedPinned_t(libIRDB::Instruction_t* p_from) : from_instruction(p_from), m_range(0,0), m_updated_address(0) {} - UnresolvedPinned_t(libIRDB::Instruction_t* p_from, Range_t range) : from_instruction(p_from), m_range(range) {} + UnresolvedPinned_t(libIRDB::Instruction_t* p_from, Range_t range) : from_instruction(p_from), m_range(range), m_updated_address(0) {} libIRDB::Instruction_t* GetInstruction() const { return from_instruction; } /* diff --git a/src/zipr.cpp b/src/zipr.cpp index d2442fc0f..b36f54add 100644 --- a/src/zipr.cpp +++ b/src/zipr.cpp @@ -353,7 +353,9 @@ void Zipr_t::OptimizePinnedFallthroughs() ft_ibta->GetVirtualOffset()) { if (m_opts.GetVerbose()) - printf("Emitting pinned instruction with pinned fallthrough next.\n"); + printf("Emitting pinned instruction (0x%p) " + "with pinned fallthrough next.\n", + (void*)up_ibta->GetVirtualOffset()); m_stats->Hit(Optimizations_t::OptimizationFallthroughPinned); /* -- GitLab