zy1000: fix false positive warning about unitialized local variable
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 18 May 2010 10:10:24 +0000 (12:10 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 18 May 2010 10:10:44 +0000 (12:10 +0200)
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/jtag/zy1000/zy1000.c

index b3f94e5cd7e784e01ef6bce59718895d3f414d38..442a09fb0b24dd182d30d01176dbe9c3c9621199 100644 (file)
@@ -181,7 +181,7 @@ void zy1000_reset(int trst, int srst)
                (!srst && !trst && (jtag_get_reset_config() & RESET_TRST_PULLS_SRST)))
        {
                bool first = true;
-               long long start;
+               long long start = 0;
                long total = 0;
                for (;;)
                {