]> git.sur5r.net Git - openocd/commitdiff
jtag: drivers: ulink: fix uninitialised variable warning
authorPaul Fertser <fercerpav@gmail.com>
Tue, 13 Dec 2016 07:44:51 +0000 (10:44 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Sun, 25 Dec 2016 09:17:30 +0000 (09:17 +0000)
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>
src/jtag/drivers/ulink.c

index c319a11dfe1666e10e5d874ea4fbfb17e58ed101..550df1c93f1d66c11c7c909827f5cd099447bac1 100644 (file)
@@ -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);