[PATCH] trivial: resolve maybe-uninitialized warnings

yegorslists at googlemail.com yegorslists at googlemail.com
Wed May 28 07:46:19 PDT 2014


From: Yegor Yefremov <yegorslists at googlemail.com>

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



More information about the ModemManager-devel mailing list