From: Kenichi Handa <handa@m17n.org>
Date: Thu, 28 Aug 2003 08:19:07 +0000 (+0000)
Subject: (decode_coding_iso2022): Initialized local variable c2.
X-Git-Tag: ttn-vms-21-2-B4~8970
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=85478bc688a99b83db58452e5b3318389b1bfb96;p=emacs.git

(decode_coding_iso2022): Initialized local variable c2.
(decode_coding_sjis_big5): Likewise.
---

diff --git a/src/ChangeLog b/src/ChangeLog
index c9bbb5e9ee2..21bd69c7a7e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-28  David Abrahams  <dave@boost-consulting.com>  (tiny change)
+
+	* coding.c (decode_coding_iso2022): Initialized local variable c2.
+	(decode_coding_sjis_big5): Likewise.
+
 2003-08-27  Jason Rumney  <jasonr@gnu.org>
 
 	* w32.c (sys_pipe): Protect against file descriptor overflow.
diff --git a/src/coding.c b/src/coding.c
index b06bf79a4bf..9a0c4c6ba08 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1823,7 +1823,7 @@ decode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
 
   while (1)
     {
-      int c1, c2;
+      int c1, c2 = 0;
 
       src_base = src;
       ONE_MORE_BYTE (c1);
@@ -3050,7 +3050,7 @@ decode_coding_sjis_big5 (coding, source, destination,
   coding->produced_char = 0;
   while (1)
     {
-      int c, charset, c1, c2;
+      int c, charset, c1, c2 = 0;
 
       src_base = src;
       ONE_MORE_BYTE (c1);