Handle the case where there's no APNs set up on the card.

Based on patch from Torgny Johansson <torgny.johansson@ericsson.com>.
This commit is contained in:
Tambet Ingo
2009-05-18 14:10:31 +03:00
parent ddbeb41829
commit f7e9e61cf9

View File

@@ -1072,6 +1072,8 @@ existing_apns_read (MMSerial *serial,
g_match_info_free (match_info);
g_regex_unref (r);
}
} else if (strlen (response->str) == 0) {
/* No APNs configured, just don't set error */
} else
info->error = g_error_new_literal (MM_MODEM_ERROR,
MM_MODEM_ERROR_GENERAL,