aboutsummaryrefslogtreecommitdiff
path: root/plugins/huawei/mm-modem-helpers-huawei.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 /plugins/huawei/mm-modem-helpers-huawei.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 'plugins/huawei/mm-modem-helpers-huawei.c')
-rw-r--r--plugins/huawei/mm-modem-helpers-huawei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/huawei/mm-modem-helpers-huawei.c b/plugins/huawei/mm-modem-helpers-huawei.c
index 2cd94e6a..1f9fe363 100644
--- a/plugins/huawei/mm-modem-helpers-huawei.c
+++ b/plugins/huawei/mm-modem-helpers-huawei.c
@@ -188,7 +188,7 @@ match_info_to_ip4_addr (GMatchInfo *match_info,
else
g_assert_not_reached ();
- bin = mm_utils_hexstr2bin (buf, &bin_len);
+ bin = mm_utils_hexstr2bin (buf, &bin_len, NULL);
if (!bin || bin_len != 4)
goto done;