From: Peter Foley <pefo...@google.com>

e.g.
  Uninitialized value was created by an allocation of 'host_pc' in the stack 
frame
  #0 0xaaaac07df87c in tb_gen_code 
third_party/qemu/accel/tcg/translate-all.c:297:5

Signed-off-by: Peter Foley <pefo...@google.com>
Signed-off-by: Nabih Estefan <nabiheste...@google.com>
---
 accel/tcg/translate-all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index 451b383aa8..03af677281 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -267,7 +267,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, TCGTBCPUState 
s)
     tcg_insn_unit *gen_code_buf;
     int gen_code_size, search_size, max_insns;
     int64_t ti;
-    void *host_pc;
+    void *host_pc = NULL;
 
     assert_memory_lock();
     qemu_thread_jit_write();
-- 
2.49.0.1015.ga840276032-goog


Reply via email to