From: Kenichi Handa Date: Tue, 7 Nov 2006 02:37:39 +0000 (+0000) Subject: (ccl_driver): If DST is NULL, set ccl->produced to 0. X-Git-Tag: emacs-pretest-23.0.90~8295^2~702 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4e3bb4f3af416f731878392e3ca7e43decab69c9;p=emacs.git (ccl_driver): If DST is NULL, set ccl->produced to 0. --- 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) ccl->stack_idx = stack_idx; ccl->prog = ccl_prog; ccl->consumed = src - source; - ccl->produced = dst - destination; + if (dst != NULL) + ccl->produced = dst - destination; + else + ccl->produced = 0; } /* Resolve symbols in the specified CCL code (Lisp vector). This