aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-input.c
diff options
context:
space:
mode:
author5 <NotZed@Ximian.com>2001-10-16 01:49:52 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-16 01:49:52 +0800
commitfec196ee907f87e880e07bdd4f78d09fae4b49a8 (patch)
treea011ce5efe198a68013d740e61007c098df177f5 /filter/filter-input.c
parentd9bdedfb8b5b8b79e1f9594c63963c546a3ef03d (diff)
downloadgsoc2013-evolution-fec196ee907f87e880e07bdd4f78d09fae4b49a8.tar.gz
gsoc2013-evolution-fec196ee907f87e880e07bdd4f78d09fae4b49a8.tar.zst
gsoc2013-evolution-fec196ee907f87e880e07bdd4f78d09fae4b49a8.zip
If we have no node content, dont append any value or try to decode it.
2001-10-15 <NotZed@Ximian.com> * filter-input.c (xml_decode): If we have no node content, dont append any value or try to decode it. Gets rid of a bunch of annoying warnings. svn path=/trunk/; revision=13677
Diffstat (limited to 'filter/filter-input.c')
-rw-r--r--filter/filter-input.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/filter/filter-input.c b/filter/filter-input.c
index dc35f2bec3..aa22771bf2 100644
--- a/filter/filter-input.c
+++ b/filter/filter-input.c
@@ -273,11 +273,12 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
if (!strcmp (n->name, type)) {
gchar *decstr;
str = xmlNodeGetContent (n);
- decstr = e_utf8_xml1_decode (str);
- if (str)
+ if (str) {
+ decstr = e_utf8_xml1_decode (str);
xmlFree (str);
- d(printf (" '%s'\n", decstr));
- fi->values = g_list_append (fi->values, decstr);
+ d(printf (" '%s'\n", decstr));
+ fi->values = g_list_append (fi->values, decstr);
+ }
} else {
g_warning ("Unknown node type '%s' encountered decoding a %s\n", n->name, type);
}