diff options
-rw-r--r-- | src/mm-broadband-modem-qmi.c | 6 |
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); } } |