diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-01 19:06:11 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-01 19:06:11 +0000 |
commit | 414245c9ce4ec112dc704664f56b268d27be3218 (patch) | |
tree | d848726dc87af801656b5d1fd036f4b33b5988ee /src/target | |
parent | cf04b595177b284484c3a9fafa03408237749f52 (diff) | |
download | openocd_libswd-414245c9ce4ec112dc704664f56b268d27be3218.tar.gz openocd_libswd-414245c9ce4ec112dc704664f56b268d27be3218.tar.bz2 openocd_libswd-414245c9ce4ec112dc704664f56b268d27be3218.tar.xz openocd_libswd-414245c9ce4ec112dc704664f56b268d27be3218.zip |
fix warning for a variable that GCC thought might be uninitialized(which it can't be).
git-svn-id: svn://svn.berlios.de/openocd/trunk@1979 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c index ece03a3a..e2e9d6f6 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1962,7 +1962,7 @@ static void handle_md_output(struct command_context_s *cmd_ctx, "0x%8.8x: ", address + (i*size)); } - u32 value; + u32 value=0; const u8 *value_ptr = buffer + i * size; switch (size) { case 4: value = target_buffer_get_u32(target, value_ptr); break; |