diff options
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 8e611843eb..3227a2e1a7 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -167,7 +167,8 @@ best_encoding (GByteArray *buf, const char *charset) return -1; cd = iconv_open (charset, "utf-8"); - g_return_val_if_fail (cd != (iconv_t)-1, -1); + if (cd == (iconv_t) -1) + return -1; in = buf->data; inlen = buf->len; |