aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-12-05 01:05:10 -0800
committerPaul Eggert2011-12-05 01:05:10 -0800
commit75a3b399a3851210b3384a49587477af165f67e3 (patch)
treef9cee79653ac6d8d02d19c24f1f21468191287ae /src
parentfa46310344375ef5c114cbb94d4acea39ac29239 (diff)
downloademacs-75a3b399a3851210b3384a49587477af165f67e3.tar.gz
emacs-75a3b399a3851210b3384a49587477af165f67e3.zip
* coding.c (encode_designation_at_bol): Don't use uninitialized
local variable (Bug#9318).
Diffstat (limited to 'src')
-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 @@
12011-12-05 Paul Eggert <eggert@cs.ucla.edu>
2
3 * coding.c (encode_designation_at_bol): Don't use uninitialized
4 local variable (Bug#9318).
5
12011-12-05 Kenichi Handa <handa@m17n.org> 62011-12-05 Kenichi Handa <handa@m17n.org>
2 7
3 * ftfont.c (get_adstyle_property): If the font is not BDF nor PCF, 8 * 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,
4356 int *charbuf, int *charbuf_end, 4356 int *charbuf, int *charbuf_end,
4357 unsigned char *dst) 4357 unsigned char *dst)
4358{ 4358{
4359 unsigned char *orig; 4359 unsigned char *orig = dst;
4360 struct charset *charset; 4360 struct charset *charset;
4361 /* Table of charsets to be designated to each graphic register. */ 4361 /* Table of charsets to be designated to each graphic register. */
4362 int r[4]; 4362 int r[4];