diff options
Diffstat (limited to 'src/main/iconv.c')
-rw-r--r-- | src/main/iconv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/iconv.c b/src/main/iconv.c index 7083745..179cf89 100644 --- a/src/main/iconv.c +++ b/src/main/iconv.c | |||
@@ -40,6 +40,8 @@ iconv_helper(iconv_t cd, | |||
40 | outSize = 4 * strlen(in) + 2; | 40 | outSize = 4 * strlen(in) + 2; |
41 | outLeft = outSize - 2; /* make sure we have 2 0-terminations! */ | 41 | outLeft = outSize - 2; /* make sure we have 2 0-terminations! */ |
42 | buf = malloc(outSize); | 42 | buf = malloc(outSize); |
43 | if (buf == NULL) | ||
44 | return NULL; | ||
43 | ibuf = buf; | 45 | ibuf = buf; |
44 | memset(buf, 0, outSize); | 46 | memset(buf, 0, outSize); |
45 | if (iconv(cd, | 47 | if (iconv(cd, |