icera: fix error handling in PIN retry counts

GErrors need to be always NULL initialized.
This commit is contained in:
Aleksander Morgado
2012-08-30 19:22:16 +02:00
parent f61db0fc4b
commit 57f56f0f16
+1 -2
View File
@@ -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);