From ae4c224459f95d82cc65b2392fcc89ed7c1e8b3e Mon Sep 17 00:00:00 2001
From: oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Date: Tue, 25 Aug 2009 07:04:25 +0000
Subject: [PATCH] =?UTF-8?q?Audrius=20Urmanavi=C4=8Dius=20<didele.deze@gmai?=
 =?UTF-8?q?l.com>=20Latest=20source=20(R2606)=20does=20not=20compile=20und?=
 =?UTF-8?q?er=20Windows+Cygwin=20-=20fails=20with=20error=20about=20possib?=
 =?UTF-8?q?ly=20uninitialized=20use=20of=20variable=20'ch'.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

git-svn-id: svn://svn.berlios.de/openocd/trunk@2612 b42882b7-edfa-0310-969c-e2dbd0fdcd60
---
 src/svf/svf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/svf/svf.c b/src/svf/svf.c
index 16495ac14..a25b3580c 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))
 	{
-- 
GitLab