summaryrefslogtreecommitdiff
path: root/src/flash/pic32mx.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-21 05:39:36 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-04-21 05:39:36 +0000
commit6f7d3c9d5b4cbe2a3b79f88c6eb62d80c0e52803 (patch)
tree99cf99f3338e9bcda91aa8765421f171a81f95af /src/flash/pic32mx.c
parent40b806bfe74e69816ee8f60da133491acadd0a33 (diff)
downloadopenocd+libswd-6f7d3c9d5b4cbe2a3b79f88c6eb62d80c0e52803.tar.gz
openocd+libswd-6f7d3c9d5b4cbe2a3b79f88c6eb62d80c0e52803.tar.bz2
openocd+libswd-6f7d3c9d5b4cbe2a3b79f88c6eb62d80c0e52803.tar.xz
openocd+libswd-6f7d3c9d5b4cbe2a3b79f88c6eb62d80c0e52803.zip
Zach Welch <zw@superlucidity.net> fix at91sam7 uninitialized variable warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@1485 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/pic32mx.c')
-rw-r--r--src/flash/pic32mx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/pic32mx.c b/src/flash/pic32mx.c
index 87ee15dc..77c9f407 100644
--- a/src/flash/pic32mx.c
+++ b/src/flash/pic32mx.c
@@ -611,7 +611,7 @@ static int pic32mx_probe(struct flash_bank_s *bank)
mips32_common_t *mips32 = target->arch_info;
mips_ejtag_t *ejtag_info = &mips32->ejtag_info;
int i;
- u16 num_pages;
+ u16 num_pages = 0;
u32 device_id;
int page_size;
@@ -704,7 +704,7 @@ static int pic32mx_info(struct flash_bank_s *bank, char *buf, int buf_size)
mips32_common_t *mips32 = target->arch_info;
mips_ejtag_t *ejtag_info = &mips32->ejtag_info;
u32 device_id;
- int printed, i;
+ int printed = 0, i;
device_id = ejtag_info->idcode;