aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2012-01-19 22:35:41 +0800
committerChong Yidong2012-01-19 22:35:41 +0800
commit76774ec8c5284dd327c13e468293a99c04103720 (patch)
treef024367ad551063232cc6b899c88c8d9d8d6d3ea /src/coding.c
parenta32a7dc7214bf5f618d50d0143fe5f8159445d2d (diff)
downloademacs-76774ec8c5284dd327c13e468293a99c04103720.tar.gz
emacs-76774ec8c5284dd327c13e468293a99c04103720.zip
Fix usage of unitialized local var (backport from trunk)
* src/coding.c (encode_designation_at_bol): Don't use uninitialized local variable (Bug#9318).
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 9a2c1f9c3f2..898bfd71f43 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4515,7 +4515,7 @@ encode_designation_at_bol (coding, charbuf, charbuf_end, dst)
4515 int *charbuf, *charbuf_end; 4515 int *charbuf, *charbuf_end;
4516 unsigned char *dst; 4516 unsigned char *dst;
4517{ 4517{
4518 unsigned char *orig; 4518 unsigned char *orig = dst;
4519 struct charset *charset; 4519 struct charset *charset;
4520 /* Table of charsets to be designated to each graphic register. */ 4520 /* Table of charsets to be designated to each graphic register. */
4521 int r[4]; 4521 int r[4];