samsung: fix crash due to uninitialized GError variables

BUG=chromium-os:32475
TEST=emerge modemmanager-next

Change-Id: I8dad924dae9a249c3b9235786226b7dd40bd8819
This commit is contained in:
Ben Chan
2012-07-13 11:09:55 -07:00
committed by Aleksander Morgado
parent 3a28f660c5
commit e18778d815

View File

@@ -142,7 +142,7 @@ load_current_bands_ready (MMIfaceModem *self,
GMatchInfo *info; GMatchInfo *info;
GArray *bands; GArray *bands;
const gchar *response; const gchar *response;
GError *error; GError *error = NULL;
response = mm_base_modem_at_command_finish (MM_BASE_MODEM (self), res, &error); response = mm_base_modem_at_command_finish (MM_BASE_MODEM (self), res, &error);
if (!response) { if (!response) {
@@ -408,7 +408,7 @@ load_unlock_retries_ready (MMBaseModem *self,
GSimpleAsyncResult *operation_result) GSimpleAsyncResult *operation_result)
{ {
const gchar *response; const gchar *response;
GError *error; GError *error = NULL;
int pin1, puk1, pin2, puk2; int pin1, puk1, pin2, puk2;