summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-05-02 13:52:06 +0200
committerXavier Claessens <xclaesse@gmail.com>2011-05-02 14:51:52 +0200
commitf20d42d874bb6fdc3bd0b714112c2e9d70df974e (patch)
tree7747490fef26cfe1876d2623306b6e267f0955b4
parent8ef049e020bd40c14e6a104576f116b391c6a18b (diff)
downloadempathy-f20d42d874bb6fdc3bd0b714112c2e9d70df974e.tar.gz
Fix a crash if replacement is NULL
-rw-r--r--libempathy-gtk/empathy-theme-adium.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index e7e4cbd37..4d017f8b6 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -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 \\ */