summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog5
-rw-r--r--src/coding.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d897fadd292..0f0365b5bac 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-05 Paul Eggert <eggert@cs.ucla.edu>
+
+ * coding.c (encode_designation_at_bol): Don't use uninitialized
+ local variable (Bug#9318).
+
2011-12-05 Kenichi Handa <handa@m17n.org>
* ftfont.c (get_adstyle_property): If the font is not BDF nor PCF,
diff --git a/src/coding.c b/src/coding.c
index b1743076630..537f69ebe1f 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4356,7 +4356,7 @@ encode_designation_at_bol (struct coding_system *coding,
int *charbuf, int *charbuf_end,
unsigned char *dst)
{
- unsigned char *orig;
+ unsigned char *orig = dst;
struct charset *charset;
/* Table of charsets to be designated to each graphic register. */
int r[4];