[PATCH] Resolve maybe-uninitialized warnings

Dan Williams dcbw at redhat.com
Tue Jan 7 07:41:05 PST 2014


On Tue, 2014-01-07 at 11:41 +0100, yegorslists at googlemail.com wrote:
> 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(-)

Pushed, thanks!

Dan

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




More information about the ModemManager-devel mailing list