aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2011-03-07 23:36:31 -0800
committerPaul Eggert2011-03-07 23:36:31 -0800
commit160b01f65a12a9e6893c270662d6ae249a1db300 (patch)
treeff089d2e38c2229577d3c1a550d264b3ba8415cc /src/coding.c
parentee05f96119932f5e4f33b59e1a2f4abdd9c0a34a (diff)
downloademacs-160b01f65a12a9e6893c270662d6ae249a1db300.tar.gz
emacs-160b01f65a12a9e6893c270662d6ae249a1db300.zip
* 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,
2954 const unsigned char *src_end = coding->source + coding->src_bytes; 2954 const unsigned char *src_end = coding->source + coding->src_bytes;
2955 int multibytep = coding->src_multibyte; 2955 int multibytep = coding->src_multibyte;
2956 int single_shifting = 0; 2956 int single_shifting = 0;
2957 int id; 2957
2958 /* FIXME: Does ID need to be initialized here? The "End of composition"
2959 code below does not initialize ID even though ID is used
2960 afterwards, and perhaps that is a bug. */
2961 int id = 0;
2962
2958 int c, c1; 2963 int c, c1;
2959 int consumed_chars = 0; 2964 int consumed_chars = 0;
2960 int i; 2965 int i;