Mercurial > pidgin
diff src/prefs.c @ 14143:11394a70de37
[gaim-migrate @ 16785]
Fix some assertion failures
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 16 Aug 2006 07:02:26 +0000 |
| parents | 8bda65b88e49 |
| children |
line wrap: on
line diff
--- a/src/prefs.c Wed Aug 16 06:58:59 2006 +0000 +++ b/src/prefs.c Wed Aug 16 07:02:26 2006 +0000 @@ -124,14 +124,14 @@ } else if (pref->type == GAIM_PREF_STRING) { xmlnode_set_attrib(node, "type", "string"); - xmlnode_set_attrib(node, "value", pref->value.string); + xmlnode_set_attrib(node, "value", pref->value.string ? pref->value.string : ""); } else if (pref->type == GAIM_PREF_STRING_LIST) { xmlnode_set_attrib(node, "type", "stringlist"); for (cur = pref->value.stringlist; cur != NULL; cur = cur->next) { childnode = xmlnode_new_child(node, "item"); - xmlnode_set_attrib(childnode, "value", cur->data); + xmlnode_set_attrib(childnode, "value", cur->data ? cur->data : ""); } } else if (pref->type == GAIM_PREF_BOOLEAN) {
