From 4e3bb4f3af416f731878392e3ca7e43decab69c9 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 7 Nov 2006 02:37:39 +0000 Subject: [PATCH] (ccl_driver): If DST is NULL, set ccl->produced to 0. --- src/ccl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5