evolution-jescs r269 - in trunk: . lib



Author: jedywang
Date: Thu Jan  8 08:31:46 2009
New Revision: 269
URL: http://svn.gnome.org/viewvc/evolution-jescs?rev=269&view=rev

Log:
2009-01-08  Wang Xin  <jedy wang sun com>

	Fixes #566997.

	* lib/sunone-connection.c: Leave "rrules" as empty if "rrules" is
	removed.



Modified:
   trunk/ChangeLog
   trunk/lib/sunone-connection.c

Modified: trunk/lib/sunone-connection.c
==============================================================================
--- trunk/lib/sunone-connection.c	(original)
+++ trunk/lib/sunone-connection.c	Thu Jan  8 08:31:46 2009
@@ -74,6 +74,13 @@
 {
 	char *work, *p;
 
+	/*
+	 * return an empty string, so we can append it to
+	 * the parameter but not ignore it.
+	 */
+	if (part == NULL)
+		return g_strdup ("");
+
 	/* worst case scenario = 3 times the initial */
 	p = work = g_malloc (3 * strlen (part) + 1);
 
@@ -96,9 +103,6 @@
 {
 	char *tmp, *enc;
 	
-	if (!value)
-		return;
-
 	enc = query_encode (value, FALSE, " &:+");
 	tmp = g_strdup_printf ("%s&%s=%s", uri->query, param, enc);
 	g_free (enc);
@@ -385,8 +389,7 @@
 		}
 		g_free (enc);
 	}
-	if (string)
-		append_to_query (uri, param, string);
+	append_to_query (uri, param, string);
 	e_cal_component_free_recur_list (r_list);
 	g_free (string);
 }



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