|
From: <zw...@ma...> - 2009-06-12 03:41:11
|
Author: zwelch Date: 2009-06-12 03:41:07 +0200 (Fri, 12 Jun 2009) New Revision: 2218 Modified: trunk/src/jtag/tcl.c Log: Fix unitialized use of cur_speed in handle_jtag_khz_command: - Use the default KHz speed setting, in case interface is not initialized. Modified: trunk/src/jtag/tcl.c =================================================================== --- trunk/src/jtag/tcl.c 2009-06-12 01:41:00 UTC (rev 2217) +++ trunk/src/jtag/tcl.c 2009-06-12 01:41:07 UTC (rev 2218) @@ -1038,7 +1038,7 @@ return retval; } - int cur_speed; + int cur_speed = jtag_get_speed_khz(); retval = jtag_get_speed_readable(&cur_speed); if (ERROR_OK != retval) return retval; |