icera: fix error handling in loading supported/current bands
This commit is contained in:
@@ -1100,7 +1100,7 @@ load_supported_bands_get_bands_ready (MMIfaceModem *self,
|
|||||||
{
|
{
|
||||||
SupportedBandsContext *ctx;
|
SupportedBandsContext *ctx;
|
||||||
const gchar *response;
|
const gchar *response;
|
||||||
GError *error;
|
GError *error = NULL;
|
||||||
GSList *iter;
|
GSList *iter;
|
||||||
guint32 len = 0, i;
|
guint32 len = 0, i;
|
||||||
|
|
||||||
@@ -1184,7 +1184,7 @@ load_current_bands_ready (MMIfaceModem *self,
|
|||||||
{
|
{
|
||||||
GArray *bands;
|
GArray *bands;
|
||||||
const gchar *response;
|
const gchar *response;
|
||||||
GError *error;
|
GError *error = NULL;
|
||||||
GSList *parsed, *iter;
|
GSList *parsed, *iter;
|
||||||
guint32 len = 0;
|
guint32 len = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user