diff options
Diffstat (limited to 'plugins/mm-modem-zte.c')
-rw-r--r-- | plugins/mm-modem-zte.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mm-modem-zte.c b/plugins/mm-modem-zte.c index 4118d425..67d6ead5 100644 --- a/plugins/mm-modem-zte.c +++ b/plugins/mm-modem-zte.c @@ -94,15 +94,15 @@ get_allowed_mode_done (MMAtSerialPort *port, gpointer user_data) { MMCallbackInfo *info = (MMCallbackInfo *) user_data; - GRegex *r = NULL; - GMatchInfo *match_info; + GRegex *r = NULL; + GMatchInfo *match_info; info->error = mm_modem_check_removed (info->modem, error); if (info->error) goto done; - r = g_regex_new ("+ZSNT:\\s*(\\d),(\\d),(\\d)", G_REGEX_UNGREEDY, 0, NULL); - if (!r) { + r = g_regex_new ("+ZSNT:\\s*(\\d),(\\d),(\\d)", G_REGEX_UNGREEDY, 0, NULL); + if (!r) { info->error = g_error_new_literal (MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL, "Failed to parse the allowed mode response"); |