Re: [Evolution-hackers] some trivial e-d-s patches
- From: JP Rosevear <jpr ximian com>
- To: Mark McLoughlin <mark skynet ie>
- Cc: evolution-hackers lists ximian com
- Subject: Re: [Evolution-hackers] some trivial e-d-s patches
- Date: Thu, 15 Jan 2004 12:45:37 -0500
On Tue, 2004-01-13 at 12:40, Mark McLoughlin wrote:
> Index: libedataserver/e-source.c
> ===================================================================
> RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-source.c,v
> retrieving revision 1.11
> diff -u -p -r1.11 e-source.c
> --- libedataserver/e-source.c 9 Jan 2004 20:05:34 -0000 1.11
> +++ libedataserver/e-source.c 13 Jan 2004 17:33:57 -0000
> @@ -622,7 +622,7 @@ dump_common_to_xml_node (ESource *source
> ESourcePrivate *priv;
> gboolean has_color;
> guint32 color;
> - xmlNodePtr node, properties_node;
> + xmlNodePtr node;
>
> priv = source->priv;
>
> @@ -642,8 +642,12 @@ dump_common_to_xml_node (ESource *source
> g_free (color_string);
> }
>
> - properties_node = xmlNewChild (node, NULL, "properties", NULL);
> - g_hash_table_foreach (priv->properties, (GHFunc) property_dump_cb, properties_node);
> + if (g_hash_table_size (priv->properties) != 0) {
> + xmlNodePtr properties_node;
> +
> + properties_node = xmlNewChild (node, NULL, "properties", NULL);
> + g_hash_table_foreach (priv->properties, (GHFunc) property_dump_cb, properties_node);
> + }
What is the point of this change?
-JP
--
JP Rosevear <jpr ximian com>
Ximian, Inc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]