[PATCH] trivial: resolve maybe-uninitialized warnings
Dan Williams
dcbw at redhat.com
Wed May 28 14:02:45 PDT 2014
On Wed, 2014-05-28 at 16:46 +0200, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists at googlemail.com>
Pushed, thanks!
Dan
> Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
> ---
> src/mm-port-serial.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/mm-port-serial.c b/src/mm-port-serial.c
> index 64eb13d..9b74900 100644
> --- a/src/mm-port-serial.c
> +++ b/src/mm-port-serial.c
> @@ -879,7 +879,7 @@ common_input_available (MMPortSerial *self,
> {
> char buf[SERIAL_BUF_SIZE + 1];
> gsize bytes_read;
> - GIOStatus status;
> + GIOStatus status = G_IO_STATUS_NORMAL;
> CommandContext *ctx;
> const char *device;
> GError *error = NULL;
More information about the ModemManager-devel
mailing list