evolution-data-server r8836 - in branches/gnome-2-22/servers/exchange: . lib



Author: msuman
Date: Fri May 23 10:55:58 2008
New Revision: 8836
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8836&view=rev

Log:
Patch from Bharath Acharya  <abharath novell com> ** Fix for bug #530763 (NULL check value before use, fixes the issue superficially)

Modified:
   branches/gnome-2-22/servers/exchange/ChangeLog
   branches/gnome-2-22/servers/exchange/lib/e2k-context.c
   branches/gnome-2-22/servers/exchange/lib/e2k-utils.c

Modified: branches/gnome-2-22/servers/exchange/lib/e2k-context.c
==============================================================================
--- branches/gnome-2-22/servers/exchange/lib/e2k-context.c	(original)
+++ branches/gnome-2-22/servers/exchange/lib/e2k-context.c	Fri May 23 10:55:58 2008
@@ -2211,6 +2211,8 @@
 	g_return_val_if_fail (source_hrefs != NULL, NULL);
 
 	dest_uri = e2k_strdup_with_trailing_slash (dest_folder);
+	if (!dest_uri)
+		return NULL;
 	hrefs = (const char **)source_hrefs->pdata;
 
 	msgs = g_new0 (GSList *, 1);

Modified: branches/gnome-2-22/servers/exchange/lib/e2k-utils.c
==============================================================================
--- branches/gnome-2-22/servers/exchange/lib/e2k-utils.c	(original)
+++ branches/gnome-2-22/servers/exchange/lib/e2k-utils.c	Fri May 23 10:55:58 2008
@@ -273,6 +273,9 @@
 {
 	char *p;
 
+	if (!path || !*path)
+		return NULL;
+
 	p = strrchr (path, '/');
 	if (p && !p[1])
 		return g_strdup (path);



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