]> git.sur5r.net Git - openocd/commitdiff
Silence -O3 warning
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 7 Jun 2011 15:58:41 +0000 (17:58 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 7 Jun 2011 15:58:41 +0000 (17:58 +0200)
src/jtag/core.c

index 0a9d72a846953f52a0361c60f426d47540dd645c..22d0b8c302e8a09c6b09c127840fffbf1019e47e 100644 (file)
@@ -1672,7 +1672,7 @@ int jtag_get_speed(int *speed)
 
 int jtag_get_speed_readable(int *khz)
 {
-       int jtag_speed_var;
+       int jtag_speed_var = 0;
        int retval = jtag_get_speed(&jtag_speed_var);
        if (retval != ERROR_OK)
                return retval;