trivial: resolve maybe-uninitialized warnings

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
This commit is contained in:
Yegor Yefremov
2014-01-07 11:41:59 +01:00
committed by Dan Williams
parent 1601069e50
commit 84bdcb04ed
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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);