diff mbox

[v2,2/2] Quiet uninitialized variable warning.

Message ID b386e3ca9c209468134595553970b9a88cfb631b.1483467324.git.msuchanek@suse.de (mailing list archive)
State New, archived
Headers show

Commit Message

Michal Suchanek Jan. 3, 2017, 6:16 p.m. UTC
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 src/vdagentd/vdagentd.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/src/vdagentd/vdagentd.c b/src/vdagentd/vdagentd.c
index 991514e..60a866e 100644
--- a/src/vdagentd/vdagentd.c
+++ b/src/vdagentd/vdagentd.c
@@ -334,6 +334,7 @@  static void do_client_file_xfer(struct vdagent_virtio_port *vport,
         id = d->id;
         break;
     }
+    default: return; /* quiet uninitialized variable warning */
     }
 
     conn = g_hash_table_lookup(active_xfers, GUINT_TO_POINTER(id));