broadband-modem-mbim: reset strings to NULL, not 0
This commit is contained in:
@@ -1580,11 +1580,11 @@ update_registration_info (MMBroadbandModemMbim *self,
|
|||||||
} else {
|
} else {
|
||||||
if (self->priv->current_operator_id) {
|
if (self->priv->current_operator_id) {
|
||||||
g_free (self->priv->current_operator_id);
|
g_free (self->priv->current_operator_id);
|
||||||
self->priv->current_operator_id = 0;
|
self->priv->current_operator_id = NULL;
|
||||||
}
|
}
|
||||||
if (self->priv->current_operator_name) {
|
if (self->priv->current_operator_name) {
|
||||||
g_free (self->priv->current_operator_name);
|
g_free (self->priv->current_operator_name);
|
||||||
self->priv->current_operator_name = 0;
|
self->priv->current_operator_name = NULL;
|
||||||
}
|
}
|
||||||
g_free (operator_id_take);
|
g_free (operator_id_take);
|
||||||
g_free (operator_name_take);
|
g_free (operator_name_take);
|
||||||
|
Reference in New Issue
Block a user