From d7a067c9eec1920ed5e73384214599da3409d9af Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 2 Apr 2004 15:46:52 +0000 Subject: Always set a format prop so that 1.4 and older 1.5 versions won't strcmp() 2004-04-02 Jeffrey Stedfast * e-signature.c (e_signature_to_xml): Always set a format prop so that 1.4 and older 1.5 versions won't strcmp() on a NULL value. svn path=/trunk/; revision=25299 --- e-util/ChangeLog | 5 +++++ e-util/e-signature.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 90db74dc9e..b23b1b1cb3 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2004-04-02 Jeffrey Stedfast + + * e-signature.c (e_signature_to_xml): Always set a format prop so + that 1.4 and older 1.5 versions won't strcmp() on a NULL value. + 2004-04-01 Jeffrey Stedfast * e-account.c: Reference signatures by their UID rather than by an diff --git a/e-util/e-signature.c b/e-util/e-signature.c index 6f34472c65..c02857abb6 100644 --- a/e-util/e-signature.c +++ b/e-util/e-signature.c @@ -347,6 +347,9 @@ e_signature_to_xml (ESignature *signature) if (signature->script) xmlSetProp (node, "script", "true"); } + } else { + /* this is to make Evolution-1.4 and older 1.5 versions happy */ + xmlSetProp (root, "format", "text/html"); } xmlDocDumpMemory (doc, (xmlChar **) &xmlbuf, &n); -- cgit