Mercurial > pidgin.yaz
changeset 24733:b0b3952aae27
Only validate the font face if it's non-null
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 16 Dec 2008 04:08:38 +0000 |
parents | 3c224208b814 |
children | 512c7c31eb21 |
files | libpurple/protocols/myspace/markup.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/markup.c Tue Dec 16 03:49:05 2008 +0000 +++ b/libpurple/protocols/myspace/markup.c Tue Dec 16 04:08:38 2008 +0000 @@ -193,7 +193,7 @@ decor_str = xmlnode_get_attrib(root, "s"); /* Validate the font face, to avoid constructing invalid HTML later */ - if (strchr(face, '\'') != NULL) + if (face != NULL && strchr(face, '\'') != NULL) face = NULL; height = height_str != NULL ? atol(height_str) : 12;