diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ccl.c | 4 |
1 files changed, 1 insertions, 3 deletions
| @@ -1894,8 +1894,6 @@ is a unibyte string. By default it is a multibyte string.") | |||
| 1894 | } | 1894 | } |
| 1895 | outbufsize = STRING_BYTES (XSTRING (str)) * ccl.buf_magnification + 256; | 1895 | outbufsize = STRING_BYTES (XSTRING (str)) * ccl.buf_magnification + 256; |
| 1896 | outbuf = (char *) xmalloc (outbufsize); | 1896 | outbuf = (char *) xmalloc (outbufsize); |
| 1897 | if (!outbuf) | ||
| 1898 | error ("Not enough memory"); | ||
| 1899 | ccl.last_block = NILP (contin); | 1897 | ccl.last_block = NILP (contin); |
| 1900 | produced = ccl_driver (&ccl, XSTRING (str)->data, outbuf, | 1898 | produced = ccl_driver (&ccl, XSTRING (str)->data, outbuf, |
| 1901 | STRING_BYTES (XSTRING (str)), outbufsize, (int *)0); | 1899 | STRING_BYTES (XSTRING (str)), outbufsize, (int *)0); |
| @@ -1908,7 +1906,7 @@ is a unibyte string. By default it is a multibyte string.") | |||
| 1908 | val = make_string (outbuf, produced); | 1906 | val = make_string (outbuf, produced); |
| 1909 | else | 1907 | else |
| 1910 | val = make_unibyte_string (outbuf, produced); | 1908 | val = make_unibyte_string (outbuf, produced); |
| 1911 | free (outbuf); | 1909 | xfree (outbuf); |
| 1912 | QUIT; | 1910 | QUIT; |
| 1913 | if (ccl.status != CCL_STAT_SUCCESS | 1911 | if (ccl.status != CCL_STAT_SUCCESS |
| 1914 | && ccl.status != CCL_STAT_SUSPEND_BY_SRC | 1912 | && ccl.status != CCL_STAT_SUSPEND_BY_SRC |