diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-10-22 08:25:00 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvindharboe@gmail.com> | 2011-10-22 06:45:55 +0000 |
commit | 51797380621f3257a427bcf25ae4b34f1f5838bd (patch) | |
tree | 45fb2deaa7eb887f45b0427c7641e3a839afe50c /src/jtag/core.c | |
parent | a093f82bb74710533e1b3352acda13960167c53e (diff) | |
download | riscv-openocd-51797380621f3257a427bcf25ae4b34f1f5838bd.zip riscv-openocd-51797380621f3257a427bcf25ae4b34f1f5838bd.tar.gz riscv-openocd-51797380621f3257a427bcf25ae4b34f1f5838bd.tar.bz2 |
warning: fix false positive
may be used uninitialized in this function [-Werror=uninitialized]
Change-Id: Ida2cf8efe4e7da6fd9f669b806a20894563ac3d4
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Reviewed-on: http://openocd.zylin.com/49
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Diffstat (limited to 'src/jtag/core.c')
-rw-r--r-- | src/jtag/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c index b26701e..ad63753 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -1398,7 +1398,7 @@ int adapter_init(struct command_context *cmd_ctx) int requested_khz = jtag_get_speed_khz(); int actual_khz = requested_khz; - int jtag_speed_var; + int jtag_speed_var = 0; retval = jtag_get_speed(&jtag_speed_var); if (retval != ERROR_OK) return retval; |