aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2006-11-07 02:37:39 +0000
committerKenichi Handa2006-11-07 02:37:39 +0000
commit4e3bb4f3af416f731878392e3ca7e43decab69c9 (patch)
treeba5c97e212eac6ab5b724ad6fc6f1422bbfeac19 /src
parenta5d47a00633ec6b111c9479bbea32e41e685aaeb (diff)
downloademacs-4e3bb4f3af416f731878392e3ca7e43decab69c9.tar.gz
emacs-4e3bb4f3af416f731878392e3ca7e43decab69c9.zip
(ccl_driver): If DST is NULL, set ccl->produced to 0.
Diffstat (limited to 'src')
-rw-r--r--src/ccl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ccl.c b/src/ccl.c
index 74d0affa681..1ff97229466 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -1782,7 +1782,10 @@ ccl_driver (ccl, source, destination, src_size, dst_size, charset_list)
1782 ccl->stack_idx = stack_idx; 1782 ccl->stack_idx = stack_idx;
1783 ccl->prog = ccl_prog; 1783 ccl->prog = ccl_prog;
1784 ccl->consumed = src - source; 1784 ccl->consumed = src - source;
1785 ccl->produced = dst - destination; 1785 if (dst != NULL)
1786 ccl->produced = dst - destination;
1787 else
1788 ccl->produced = 0;
1786} 1789}
1787 1790
1788/* Resolve symbols in the specified CCL code (Lisp vector). This 1791/* Resolve symbols in the specified CCL code (Lisp vector). This