aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--matchbox/mb-wm-theme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/matchbox/mb-wm-theme.c b/matchbox/mb-wm-theme.c
index f80a669..e610236 100644
--- a/matchbox/mb-wm-theme.c
+++ b/matchbox/mb-wm-theme.c
@@ -464,7 +464,7 @@ mb_wm_theme_new (MBWMManager * wm, const char * theme_path)
while (fgets (buf, sizeof (buf), file))
{
int len = strlen(buf);
- if (XML_Parse(par, buf, len, 0))
+ if (XML_Parse(par, buf, len, 0) == 0)
{
g_warning ("Failed to parse theme %s", path);
goto default_theme;