evolution-data-server r8837 - in trunk/servers/exchange: . lib
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r8837 - in trunk/servers/exchange: . lib
- Date: Fri, 23 May 2008 10:56:10 +0000 (UTC)
Author: msuman
Date: Fri May 23 10:56:10 2008
New Revision: 8837
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8837&view=rev
Log:
Patch from Bharath Acharya <abharath novell com> ** Fix for bug #530763 (NULL check value before use, fixes the issue superficially)
Modified:
trunk/servers/exchange/ChangeLog
trunk/servers/exchange/lib/e2k-context.c
trunk/servers/exchange/lib/e2k-utils.c
Modified: trunk/servers/exchange/lib/e2k-context.c
==============================================================================
--- trunk/servers/exchange/lib/e2k-context.c (original)
+++ trunk/servers/exchange/lib/e2k-context.c Fri May 23 10:56:10 2008
@@ -2255,6 +2255,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: trunk/servers/exchange/lib/e2k-utils.c
==============================================================================
--- trunk/servers/exchange/lib/e2k-utils.c (original)
+++ trunk/servers/exchange/lib/e2k-utils.c Fri May 23 10:56:10 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]