# HG changeset patch
# User Mark Doliner <mark@kingant.net>
# Date 1229400518 0
# Node ID b0b3952aae279134dc55d0e956acc4015ea03ade
# Parent  3c224208b814876c8935dce15f27e82102705a5d
Only validate the font face if it's non-null

diff -r 3c224208b814 -r b0b3952aae27 libpurple/protocols/myspace/markup.c
--- 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;