diff options
author | Ben Chan <benchan@chromium.org> | 2014-05-19 23:46:55 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-05-20 09:32:29 +0200 |
commit | 37b0402ee52ee98271d75681fee5dd4de0bebb8f (patch) | |
tree | 70cd0d6d700dd2548a96d4e01a5cec2930e45d66 /src/mm-modem-helpers.c | |
parent | d4177f554bab5e596aeb8a2f80ad8466d837e799 (diff) |
core: minor coding style fixes
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) { |