Permalink
Browse files

Fix usage of unitialized local var (backport from trunk)

* src/coding.c (encode_designation_at_bol): Don't use uninitialized
local variable (Bug#9318).
  • Loading branch information...
1 parent af12b66 commit 8a1c44b18259bc21dbec69c1277579ef1f380b49 @eggert eggert committed with Chong Yidong Jan 19, 2012
Showing with 6 additions and 1 deletion.
  1. +5 −0 src/ChangeLog
  2. +1 −1 src/coding.c
View
@@ -1,3 +1,8 @@
+2012-01-19 Paul Eggert <eggert@cs.ucla.edu>
+
+ * coding.c (encode_designation_at_bol): Don't use uninitialized
+ local variable (Bug#9318).
+
2012-01-19 Kenichi Handa <handa@m17n.org>
* coding.c (encode_designation_at_bol): New args charbuf_end and
View
@@ -4515,7 +4515,7 @@ encode_designation_at_bol (coding, charbuf, charbuf_end, dst)
int *charbuf, *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];

0 comments on commit 8a1c44b

Please sign in to comment.