Mercurial > pidgin.yaz
diff libpurple/protocols/myspace/markup.c @ 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 | e268ad14e693 |
children | ced7ff727a97 |
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;