icera: fix error handling in PIN retry counts
GErrors need to be always NULL initialized.
This commit is contained in:
@@ -860,10 +860,9 @@ load_unlock_retries_ready (MMBaseModem *self,
|
||||
GSimpleAsyncResult *operation_result)
|
||||
{
|
||||
const gchar *response;
|
||||
GError *error;
|
||||
GError *error = NULL;
|
||||
int pin1, puk1, pin2, puk2;
|
||||
|
||||
|
||||
response = mm_base_modem_at_command_finish (MM_BASE_MODEM (self), res, &error);
|
||||
if (!response) {
|
||||
mm_dbg ("Couldn't query unlock retries: '%s'", error->message);
|
||||
|
||||
Reference in New Issue
Block a user