[evolution/wip/webkit2] itip_send_comp_sync: Initialize all members of a stack allocated structure



commit 3fbde869c2ce3ffadd13dd27a2fd8786214519ff
Author: Milan Crha <mcrha redhat com>
Date:   Thu Feb 26 08:40:05 2015 +0100

    itip_send_comp_sync: Initialize all members of a stack allocated structure

 calendar/gui/itip-utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index 91ff5b0..a043bd4 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -1982,6 +1982,8 @@ itip_send_comp_sync (ESourceRegistry *registry,
 {
        ItipSendComponentData isc;
 
+       memset (&isc, 0, sizeof (ItipSendComponentData));
+
        isc.registry = registry;
        isc.method = method;
        isc.send_comp = send_comp;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]