aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-04-09 11:15:30 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-04-10 08:24:52 +0000
commit9c0a937cf3ce311f8ed7992dc5b8abd38ffc3e08 (patch)
treeb8fde00151592da6edaf8fa423fa8019d8c1cdcc
parent4758e49d879c47a92cd76156f0f7ec7739ceb39f (diff)
broadband-modem-qmi: since 1.24.6 all strings are valid UTF-8
-rw-r--r--src/mm-broadband-modem-qmi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c
index 599ebd68..cf7ebf55 100644
--- a/src/mm-broadband-modem-qmi.c
+++ b/src/mm-broadband-modem-qmi.c
@@ -2726,10 +2726,8 @@ common_process_serving_system_3gpp (MMBroadbandModemQmi *self,
if (!self->priv->current_operator_description || !g_str_equal (self->priv->current_operator_description, description)) {
operator_updated = TRUE;
- g_clear_pointer (&self->priv->current_operator_description, g_free);
- /* Some Telit modems apparently sometimes report non-UTF8 characters */
- if (g_utf8_validate (description, -1, NULL))
- self->priv->current_operator_description = g_strdup (description);
+ g_free (self->priv->current_operator_description);
+ self->priv->current_operator_description = g_strdup (description);
}
}