broadband-modem-qmi: since 1.24.6 all strings are valid UTF-8
This commit is contained in:
@@ -2726,9 +2726,7 @@ 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))
|
||||
g_free (self->priv->current_operator_description);
|
||||
self->priv->current_operator_description = g_strdup (description);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user