From: Paul Eggert Date: Mon, 5 Dec 2011 09:05:10 +0000 (-0800) Subject: * coding.c (encode_designation_at_bol): Don't use uninitialized X-Git-Tag: emacs-pretest-24.0.93~229 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=75a3b399a3851210b3384a49587477af165f67e3;p=emacs.git * coding.c (encode_designation_at_bol): Don't use uninitialized local variable (Bug#9318). --- 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];