diff options
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r-- | src/mm-modem-helpers.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index 8bdc0e76..e0395af8 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -1814,20 +1814,20 @@ mm_3gpp_parse_operator (const gchar *reply, if (reply && !strncmp (reply, "+COPS: ", 7)) { /* Got valid reply */ - GRegex *r; - GMatchInfo *match_info; + GRegex *r; + GMatchInfo *match_info; - reply += 7; - r = g_regex_new ("(\\d),(\\d),\"(.+)\"", G_REGEX_UNGREEDY, 0, NULL); - if (!r) + reply += 7; + r = g_regex_new ("(\\d),(\\d),\"(.+)\"", G_REGEX_UNGREEDY, 0, NULL); + if (!r) return NULL; - g_regex_match (r, reply, 0, &match_info); - if (g_match_info_matches (match_info)) + g_regex_match (r, reply, 0, &match_info); + if (g_match_info_matches (match_info)) operator = g_match_info_fetch (match_info, 3); - g_match_info_free (match_info); - g_regex_unref (r); + g_match_info_free (match_info); + g_regex_unref (r); } if (operator) { |