aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2012-07-13 11:09:55 -0700
committerAleksander Morgado <aleksander@lanedo.com>2012-08-06 20:07:26 +0200
commite18778d815ffda24ac0f9a7b17dab3fdd22a575e (patch)
treeda416089eaf380b2a00e6cf6a33630429dc1e433
parent3a28f660c5b60b1615f0c664bf16d5d3c69ed2a6 (diff)
samsung: fix crash due to uninitialized GError variables
BUG=chromium-os:32475 TEST=emerge modemmanager-next Change-Id: I8dad924dae9a249c3b9235786226b7dd40bd8819
-rw-r--r--plugins/samsung/mm-broadband-modem-samsung.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/samsung/mm-broadband-modem-samsung.c b/plugins/samsung/mm-broadband-modem-samsung.c
index 3569d5bf..d378e16b 100644
--- a/plugins/samsung/mm-broadband-modem-samsung.c
+++ b/plugins/samsung/mm-broadband-modem-samsung.c
@@ -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;