charsets: don't warn if we couldn't convert from hex to utf8
This commit is contained in:
@@ -160,7 +160,8 @@ mm_modem_charset_hex_to_utf8 (const char *src, MMModemCharset charset)
|
|||||||
g_return_val_if_fail (iconv_from != NULL, FALSE);
|
g_return_val_if_fail (iconv_from != NULL, FALSE);
|
||||||
|
|
||||||
unconverted = utils_hexstr2bin (src, &unconverted_len);
|
unconverted = utils_hexstr2bin (src, &unconverted_len);
|
||||||
g_return_val_if_fail (unconverted != NULL, NULL);
|
if (!unconverted)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (charset == MM_MODEM_CHARSET_UTF8 || charset == MM_MODEM_CHARSET_IRA)
|
if (charset == MM_MODEM_CHARSET_UTF8 || charset == MM_MODEM_CHARSET_IRA)
|
||||||
return unconverted;
|
return unconverted;
|
||||||
|
Reference in New Issue
Block a user