summaryrefslogtreecommitdiffstats
path: root/libpdbg/chip.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpdbg/chip.c')
-rw-r--r--libpdbg/chip.c4
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;
}
OpenPOWER on IntegriCloud