diff options
author | 5 <NotZed@Ximian.com> | 2001-10-16 01:49:52 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-10-16 01:49:52 +0800 |
commit | fec196ee907f87e880e07bdd4f78d09fae4b49a8 (patch) | |
tree | a011ce5efe198a68013d740e61007c098df177f5 | |
parent | d9bdedfb8b5b8b79e1f9594c63963c546a3ef03d (diff) | |
download | gsoc2013-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
-rw-r--r-- | filter/ChangeLog | 6 | ||||
-rw-r--r-- | filter/filter-input.c | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 2f6a38e415..9dbdd81358 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,9 @@ +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. + 2001-10-04 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (validate): And again here. 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); } |