If we write "" to an xml file, we read back NULL. So if we read back NULL,

2002-01-15  Not Zed  <NotZed@Ximian.com>

        * filter-input.c (xml_decode): If we write "" to an xml file, we
        read back NULL.  So if we read back NULL, convert it to "".
        Sigh.  This makes a fix for #7801, although new gui may also be
        required.

svn path=/trunk/; revision=15326
This commit is contained in:
Not Zed
2002-01-15 02:26:10 +00:00
committed by Michael Zucci
parent 4e788c6fec
commit d636d53bc9
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2002-01-15 Not Zed <NotZed@Ximian.com>
* filter-input.c (xml_decode): If we write "" to an xml file, we
read back NULL. So if we read back NULL, convert it to "".
Sigh. This makes a fix for #7801, although new gui may also be
required.
2002-01-03 Jeffrey Stedfast <fejj@ximian.com>
* filter-source.c (filter_source_get_sources): Get the account

View File

@ -37,7 +37,7 @@
#include "filter-input.h"
#include "e-util/e-sexp.h"
#define d(x)
#define d(x)
static gboolean validate (FilterElement *fe);
static void xml_create(FilterElement *fe, xmlNodePtr node);
@ -276,9 +276,11 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
if (str) {
decstr = e_utf8_xml1_decode (str);
xmlFree (str);
d(printf (" '%s'\n", decstr));
fi->values = g_list_append (fi->values, decstr);
}
} else
decstr = g_strdup("");
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);
}