aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2011-11-07 10:57:07 +0900
committerKenichi Handa2011-11-07 10:57:07 +0900
commita0241d014e3d762bc7818d6cd8fd7c90bab3c538 (patch)
treea14ae98ada4e3490fecf36539f30ff4afb0ae8f8 /src/coding.c
parent56c31147dce7a3b3c40792be5b115a2e6dbcfe1d (diff)
downloademacs-a0241d014e3d762bc7818d6cd8fd7c90bab3c538.tar.gz
emacs-a0241d014e3d762bc7818d6cd8fd7c90bab3c538.zip
Set members of the struct coding_system before accessing them (bug#9910,9911,9912).
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 5fd59d394d9..79908e9b29b 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1043,7 +1043,7 @@ coding_set_destination (struct coding_system *coding)
1043{ 1043{
1044 if (BUFFERP (coding->dst_object)) 1044 if (BUFFERP (coding->dst_object))
1045 { 1045 {
1046 if (coding->src_pos < 0) 1046 if (BUFFERP (coding->src_object) && coding->src_pos < 0)
1047 { 1047 {
1048 coding->destination = BEG_ADDR + coding->dst_pos_byte - BEG_BYTE; 1048 coding->destination = BEG_ADDR + coding->dst_pos_byte - BEG_BYTE;
1049 coding->dst_bytes = (GAP_END_ADDR 1049 coding->dst_bytes = (GAP_END_ADDR