pidgin: 389fc77b: Only validate the font face if it's non-...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Dec 15 23:10:27 EST 2008


-----------------------------------------------------------------
Revision: 389fc77b5c3ca539802831acadefd13997e9bdbe
Ancestor: ba66150a2a1efc5a5cee7204adab69208825630e
Author: markdoliner at pidgin.im
Date: 2008-12-16T04:08:38
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/389fc77b5c3ca539802831acadefd13997e9bdbe

Modified files:
        libpurple/protocols/myspace/markup.c

ChangeLog: 

Only validate the font face if it's non-null

-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/markup.c	264b817061421ccbb12b5e2c63b4f5a27aaa3e61
+++ libpurple/protocols/myspace/markup.c	780772f513c21e7424f5ca6b657a6e37edfcb15d
@@ -193,7 +193,7 @@ msim_markup_f_to_html(MsimSession *sessi
 	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;


More information about the Commits mailing list