]> git.sur5r.net Git - openocd/commitdiff
xsvf: fix clang warning
authorSpencer Oliver <spen@spen-soft.co.uk>
Mon, 9 Jan 2012 21:43:27 +0000 (21:43 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 12 Jan 2012 20:38:51 +0000 (20:38 +0000)
clang reports 'Function call argument is an uninitialized value'.

Change-Id: I50f4a7932b59930a5f1e3ece70b12c59e85ea3c6
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/360
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
src/xsvf/xsvf.c

index 9fda8e382ddcfbf316da376643e2c686c68b756f..5699d57fedd398294a59c6597ad2bdeafae11d4a 100644 (file)
@@ -189,7 +189,7 @@ COMMAND_HANDLER(handle_xsvf_command)
        tap_state_t xenddr = TAP_IDLE;
 
        uint8_t         opcode;
-       uint8_t         uc;
+       uint8_t         uc = 0;
        long            file_offset = 0;
 
        int             loop_count = 0;