aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-09-11 02:46:49 +0800
committerMilan Crha <mcrha@redhat.com>2009-09-11 02:46:49 +0800
commitde1a7cd409a50187bdfe69833f14d599f969433c (patch)
tree39c4fea05cf785e2d4b603256d7df864a7ae505f
parent2956f9d3dd5cded214aa0efc05eb0ba3e275f4b9 (diff)
downloadgsoc2013-evolution-de1a7cd409a50187bdfe69833f14d599f969433c.tar.gz
gsoc2013-evolution-de1a7cd409a50187bdfe69833f14d599f969433c.tar.zst
gsoc2013-evolution-de1a7cd409a50187bdfe69833f14d599f969433c.zip
Bug #572960 - Ignore and drop invalid signatures on load
-rw-r--r--e-util/e-signature-list.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/e-util/e-signature-list.c b/e-util/e-signature-list.c
index 3fd4f8ab15..34b45be5ba 100644
--- a/e-util/e-signature-list.c
+++ b/e-util/e-signature-list.c
@@ -204,13 +204,16 @@ gconf_signatures_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry,
}
if (!found) {
+ resave = TRUE;
+
/* Must be a new signature */
signature = e_signature_new_from_xml (l->data);
- have_autogen |= e_signature_get_autogenerated (signature);
- resave = TRUE;
+ if (signature) {
+ have_autogen |= e_signature_get_autogenerated (signature);
- e_list_append (E_LIST (signature_list), signature);
- new_sigs = g_slist_prepend (new_sigs, signature);
+ e_list_append (E_LIST (signature_list), signature);
+ new_sigs = g_slist_prepend (new_sigs, signature);
+ }
}
g_free (uid);