]> git.sur5r.net Git - openocd/commitdiff
Audrius Urmanavičius <didele.deze@gmail.com> Latest source (R2606) does not compile...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 25 Aug 2009 07:04:25 +0000 (07:04 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 25 Aug 2009 07:04:25 +0000 (07:04 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2612 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/svf/svf.c

index 16495ac140d1f92ea862bf65037afafca101cb06..a25b3580cc0d1f991d82376c2c1be44ec2094c86 100644 (file)
@@ -656,7 +656,7 @@ static int svf_adjust_array_length(uint8_t **arr, int orig_bit_len, int new_bit_
 static int svf_copy_hexstring_to_binary(char *str, uint8_t **bin, int orig_bit_len, int bit_len)
 {
        int i, str_len = strlen(str), str_hbyte_len = (bit_len + 3) >> 2;
-       uint8_t ch;
+       uint8_t ch = 0;
 
        if (ERROR_OK != svf_adjust_array_length(bin, orig_bit_len, bit_len))
        {