From 42983001ea2dade6b3e076e49028f3df7d623ee1 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 8 Aug 2008 11:03:11 +0000 Subject: ** Fix for bug #544117 2008-08-08 Milan Crha ** Fix for bug #544117 * gui/itip-utils.c: (itip_send_comp): Initialize variables to NULL, to not free uninitialized memory in the cleanup part on the error. svn path=/trunk/; revision=35935 --- calendar/gui/itip-utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index c60b7d3dc1..616e1edbe7 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -1142,9 +1142,9 @@ itip_send_comp (ECalComponentItipMethod method, ECalComponent *send_comp, ECalComponent *comp = NULL; icalcomponent *top_level = NULL; char *ical_string = NULL; - gchar *from; - gchar *content_type; - gchar *subject; + gchar *from = NULL; + gchar *content_type = NULL; + gchar *subject = NULL; gboolean retval = FALSE; /* check whether backend could handle sending requests/updates */ -- cgit v1.2.3