changeset 90648:89dfe53fbc18

(ccl_driver): If DST is NULL, set ccl->produced to 0.
author Kenichi Handa <handa@m17n.org>
date Tue, 07 Nov 2006 02:37:39 +0000
parents a156ddd24e02
children d53934e7ddef
files src/ccl.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ccl.c	Thu Nov 02 23:03:45 2006 +0000
+++ b/src/ccl.c	Tue Nov 07 02:37:39 2006 +0000
@@ -1782,7 +1782,10 @@
   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