aboutsummaryrefslogtreecommitdiff
path: root/src/mm-charsets.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-11-22 17:01:19 +0100
committerAleksander Morgado <aleksander@aleksander.es>2021-02-23 11:35:11 +0000
commit657cabcfce6794d2a2f629d63dbd56fc149dab2e (patch)
tree402bd1b6787ee65b93aad0d1b94ef9e9162e2178 /src/mm-charsets.c
parentdbdf67e9f7c55d7f70ed94449160a7ff254359a2 (diff)
libmm-glib,common-helpers: make hexstr2bin() return a GError
This util method checks whether the input string is a valid hex string, so make sure we return a GError on failure.
Diffstat (limited to 'src/mm-charsets.c')
-rw-r--r--src/mm-charsets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-charsets.c b/src/mm-charsets.c
index 2613a660..f51e92bb 100644
--- a/src/mm-charsets.c
+++ b/src/mm-charsets.c
@@ -169,7 +169,7 @@ mm_modem_charset_hex_to_utf8 (const gchar *src,
iconv_from = charset_iconv_from (charset);
g_return_val_if_fail (iconv_from != NULL, FALSE);
- unconverted = mm_utils_hexstr2bin (src, &unconverted_len);
+ unconverted = mm_utils_hexstr2bin (src, &unconverted_len, NULL);
if (!unconverted)
return NULL;