]> git.sur5r.net Git - openocd/commitdiff
fix warning for a variable that GCC thought might be uninitialized(which it can't...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 1 Jun 2009 19:06:11 +0000 (19:06 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 1 Jun 2009 19:06:11 +0000 (19:06 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1979 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/target.c

index ece03a3a79322fe2aa20be35caa666c3ab96b268..e2e9d6f6461373d10302634c6d7d8c782339030b 100644 (file)
@@ -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;