From: Paul Fertser Date: Tue, 13 Dec 2016 07:44:51 +0000 (+0300) Subject: jtag: drivers: ulink: fix uninitialised variable warning X-Git-Tag: v0.10.0-rc1~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0dc707a6d6c4d65375dbc522d73ef1c00e36b447;p=openocd 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 Reviewed-on: http://openocd.zylin.com/3907 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- diff --git a/src/jtag/drivers/ulink.c b/src/jtag/drivers/ulink.c index c319a11d..550df1c9 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);