diff options
author | Amitay Isaacs <amitay@ozlabs.org> | 2018-08-08 19:17:40 +1000 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2018-08-13 15:26:36 +1000 |
commit | 1e0d53effff8f9502f19f2b1e14fc0e14ff38d90 (patch) | |
tree | 33887b22784c260fd30324f5f44bcc60d612247e | |
parent | a456e156f1f770579d481a55f94cc2f9ecd5070e (diff) | |
download | pdbg-1e0d53effff8f9502f19f2b1e14fc0e14ff38d90.tar.gz pdbg-1e0d53effff8f9502f19f2b1e14fc0e14ff38d90.zip |
libpdbg: Initialize to avoid build errors with -O3
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
-rw-r--r-- | libpdbg/chip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpdbg/chip.c b/libpdbg/chip.c index 5acda73..80a2261 100644 --- a/libpdbg/chip.c +++ b/libpdbg/chip.c @@ -325,7 +325,7 @@ int ram_state_thread(struct pdbg_target *thread, struct thread_regs *regs) { struct thread_regs _regs; struct thread *t; - uint64_t value; + uint64_t value = 0; int i; if (!regs) @@ -362,7 +362,7 @@ int ram_state_thread(struct pdbg_target *thread, struct thread_regs *regs) regs->cr = 0; for (i = 0; i < 8; i++) { - uint64_t cr; + uint64_t cr = 0; ram_getcr(thread, i, &cr); regs->cr |= cr; } |