broadband-modem-mbim: reset strings to NULL, not 0

This commit is contained in:
Aleksander Morgado
2014-07-09 11:58:46 +02:00
parent 0be8808cbd
commit 6062462dcb

View File

@@ -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);