[PATCH] Resolve maybe-uninitialized warnings
yegorslists at googlemail.com
yegorslists at googlemail.com
Tue Jan 7 02:41:59 PST 2014
From: Yegor Yefremov <yegorslists at googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
plugins/huawei/mm-broadband-modem-huawei.c | 2 +-
src/mm-serial-port.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/huawei/mm-broadband-modem-huawei.c b/plugins/huawei/mm-broadband-modem-huawei.c
index 80c8e7b..695b927 100644
--- a/plugins/huawei/mm-broadband-modem-huawei.c
+++ b/plugins/huawei/mm-broadband-modem-huawei.c
@@ -793,7 +793,7 @@ load_current_bands_finish (MMIfaceModem *self,
GError **error)
{
const gchar *response;
- GArray *bands_array;
+ GArray *bands_array = NULL;
response = mm_base_modem_at_command_finish (MM_BASE_MODEM (self), res, error);
if (!response)
diff --git a/src/mm-serial-port.c b/src/mm-serial-port.c
index 545e707..6db2efd 100644
--- a/src/mm-serial-port.c
+++ b/src/mm-serial-port.c
@@ -868,7 +868,7 @@ mm_serial_port_open (MMSerialPort *self, GError **error)
const char *device;
struct serial_struct sinfo = { 0 };
GTimeVal tv_start, tv_end;
- int errno_save;
+ int errno_save = 0;
g_return_val_if_fail (MM_IS_SERIAL_PORT (self), FALSE);
--
1.7.7
More information about the ModemManager-devel
mailing list