summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-03-07 23:36:31 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-03-07 23:36:31 -0800
commit160b01f65a12a9e6893c270662d6ae249a1db300 (patch)
treeff089d2e38c2229577d3c1a550d264b3ba8415cc /src/coding.c
parentee05f96119932f5e4f33b59e1a2f4abdd9c0a34a (diff)
downloademacs-160b01f65a12a9e6893c270662d6ae249a1db300.tar.gz
* coding.c (detect_coding_iso_2022): Initialize a local variable that might
be used uninitialized. Leave a FIXME because it's not clear that this initialization is needed.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 096268d1a72..9a6a4484e50 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -2954,7 +2954,12 @@ detect_coding_iso_2022 (struct coding_system *coding,
const unsigned char *src_end = coding->source + coding->src_bytes;
int multibytep = coding->src_multibyte;
int single_shifting = 0;
- int id;
+
+ /* FIXME: Does ID need to be initialized here? The "End of composition"
+ code below does not initialize ID even though ID is used
+ afterwards, and perhaps that is a bug. */
+ int id = 0;
+
int c, c1;
int consumed_chars = 0;
int i;