This is an automated email from Gerrit.

?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/49

-- gerrit

commit 0b0da279276e47b49f002374735e0570544cf32b
Author: Øyvind Harboe <oyvind.har...@zylin.com>
Date:   Sat Oct 22 08:25:00 2011 +0200

    warning: fix false positive
    
    may be used uninitialized in this function [-Werror=uninitialized]
    
    Change-Id: Ida2cf8efe4e7da6fd9f669b806a20894563ac3d4
    Signed-off-by: Øyvind Harboe <oyvind.har...@zylin.com>

diff --git a/src/jtag/core.c b/src/jtag/core.c
index b26701e..ad63753 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -1398,7 +1398,7 @@ int adapter_init(struct command_context *cmd_ctx)
 
        int requested_khz = jtag_get_speed_khz();
        int actual_khz = requested_khz;
-       int jtag_speed_var;
+       int jtag_speed_var = 0;
        retval = jtag_get_speed(&jtag_speed_var);
        if (retval != ERROR_OK)
                return retval;

-- 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to