diff options
| author | Kenichi Handa | 2006-11-07 02:37:39 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-11-07 02:37:39 +0000 |
| commit | 4e3bb4f3af416f731878392e3ca7e43decab69c9 (patch) | |
| tree | ba5c97e212eac6ab5b724ad6fc6f1422bbfeac19 /src | |
| parent | a5d47a00633ec6b111c9479bbea32e41e685aaeb (diff) | |
| download | emacs-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -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 |