broadband-modem: ensure `match_info' is always initialized

This patch initializes `match_info' in registration_status_check_ready()
to NULL by default, such that `match_info' is always initialized even if
`self->priv->modem_3gpp_registration_regex' contains no elements.
Though `self->priv->modem_3gpp_registration_regex' always contains some
elements in the current implementation, it's better not to rely on that.
This commit is contained in:
Ben Chan
2017-08-03 15:54:38 -07:00
committed by Aleksander Morgado
parent e33aa01963
commit 941a41d30f

View File

@@ -3952,7 +3952,7 @@ registration_status_check_ready (MMBroadbandModem *self,
RunRegistrationChecksContext *ctx;
const gchar *response;
GError *error = NULL;
GMatchInfo *match_info;
GMatchInfo *match_info = NULL;
guint i;
gboolean parsed;
gboolean cgreg;