Commit f20d42d8 authored by Xavier Claessens's avatar Xavier Claessens

Fix a crash if replacement is NULL

parent 8ef049e0
......@@ -281,7 +281,7 @@ theme_adium_parse_body (EmpathyThemeAdium *self,
static void
escape_and_append_len (GString *string, const gchar *str, gint len)
{
while (*str != '\0' && len != 0) {
while (str != NULL && *str != '\0' && len != 0) {
switch (*str) {
case '\\':
/* \ becomes \\ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment