samsung: fix crash due to uninitialized GError variables
BUG=chromium-os:32475 TEST=emerge modemmanager-next Change-Id: I8dad924dae9a249c3b9235786226b7dd40bd8819
This commit is contained in:

committed by
Aleksander Morgado

parent
3a28f660c5
commit
e18778d815
@@ -142,7 +142,7 @@ load_current_bands_ready (MMIfaceModem *self,
|
||||
GMatchInfo *info;
|
||||
GArray *bands;
|
||||
const gchar *response;
|
||||
GError *error;
|
||||
GError *error = NULL;
|
||||
|
||||
response = mm_base_modem_at_command_finish (MM_BASE_MODEM (self), res, &error);
|
||||
if (!response) {
|
||||
@@ -408,7 +408,7 @@ load_unlock_retries_ready (MMBaseModem *self,
|
||||
GSimpleAsyncResult *operation_result)
|
||||
{
|
||||
const gchar *response;
|
||||
GError *error;
|
||||
GError *error = NULL;
|
||||
int pin1, puk1, pin2, puk2;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user