Commit 414245c9 authored by oharboe's avatar oharboe
Browse files

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
parent cf04b595
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment