diff options
author | Paul Fertser <fercerpav@gmail.com> | 2016-12-13 10:44:51 +0300 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2016-12-25 09:17:30 +0000 |
commit | 0dc707a6d6c4d65375dbc522d73ef1c00e36b447 (patch) | |
tree | cb1ba5c431c793209835813c9010fa5aed181338 /src/jtag/drivers/ulink.c | |
parent | 0c2de8b3d0bcc79cac026945d7f29989bbe4084f (diff) | |
download | riscv-openocd-0dc707a6d6c4d65375dbc522d73ef1c00e36b447.zip riscv-openocd-0dc707a6d6c4d65375dbc522d73ef1c00e36b447.tar.gz riscv-openocd-0dc707a6d6c4d65375dbc522d73ef1c00e36b447.tar.bz2 |
jtag: drivers: ulink: fix uninitialised variable warning
This prevents clean build when --enable-verbose-jtag-io is used.
Change-Id: I5c9e6968cfa425b1f6f92f59156b6ae38cb9af18
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/3907
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/jtag/drivers/ulink.c')
-rw-r--r-- | src/jtag/drivers/ulink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/drivers/ulink.c b/src/jtag/drivers/ulink.c index c319a11..550df1c 100644 --- a/src/jtag/drivers/ulink.c +++ b/src/jtag/drivers/ulink.c @@ -2066,7 +2066,7 @@ static int ulink_khz(int khz, int *jtag_speed) } #ifdef _DEBUG_JTAG_IO_ - long f_tck, f_tms, f_scan_in, f_scan_out, f_scan_io; + long f_tck = 0, f_tms = 0, f_scan_in = 0, f_scan_out = 0, f_scan_io = 0; ulink_calculate_frequency(DELAY_CLOCK_TCK, ulink_handle->delay_clock_tck, &f_tck); |