From 75a3b399a3851210b3384a49587477af165f67e3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 5 Dec 2011 01:05:10 -0800 Subject: [PATCH] * coding.c (encode_designation_at_bol): Don't use uninitialized local variable (Bug#9318). --- src/ChangeLog | 5 +++++ src/coding.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * coding.c (encode_designation_at_bol): Don't use uninitialized + local variable (Bug#9318). + 2011-12-05 Kenichi Handa * 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]; -- 2.39.2