diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-25 07:04:25 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-25 07:04:25 +0000 |
commit | ae4c224459f95d82cc65b2392fcc89ed7c1e8b3e (patch) | |
tree | 61c548c6b35a44dea87055b7c4ab220702dd4251 /src/svf | |
parent | 41bb41bb93f3df653c6f17c3724b5c8c6642ec16 (diff) | |
download | openocd_libswd-ae4c224459f95d82cc65b2392fcc89ed7c1e8b3e.tar.gz openocd_libswd-ae4c224459f95d82cc65b2392fcc89ed7c1e8b3e.tar.bz2 openocd_libswd-ae4c224459f95d82cc65b2392fcc89ed7c1e8b3e.tar.xz openocd_libswd-ae4c224459f95d82cc65b2392fcc89ed7c1e8b3e.zip |
Audrius Urmanavičius <didele.deze@gmail.com> Latest source (R2606) does not compile under Windows+Cygwin - fails with error about possibly uninitialized use of variable 'ch'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2612 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/svf')
-rw-r--r-- | src/svf/svf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svf/svf.c b/src/svf/svf.c index 16495ac1..a25b3580 100644 --- a/src/svf/svf.c +++ b/src/svf/svf.c @@ -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)) { |