diff options
author | Joe Steeve <js@hipro.co.in> | 2012-09-04 10:27:51 +0100 |
---|---|---|
committer | Ross Burton <ross.burton@intel.com> | 2012-09-04 10:27:51 +0100 |
commit | 82ab370dfddb40bf1e7022b49f3c92674fbb76a5 (patch) | |
tree | 4ea7a943b0e2b5be39309fce1b03660199ccb300 | |
parent | 1981ec7e286ae8c309b3d7f02c6cabb6999222ef (diff) | |
download | matchbox-window-manager-2-82ab370dfddb40bf1e7022b49f3c92674fbb76a5.tar.gz matchbox-window-manager-2-82ab370dfddb40bf1e7022b49f3c92674fbb76a5.tar.bz2 matchbox-window-manager-2-82ab370dfddb40bf1e7022b49f3c92674fbb76a5.zip |
Don't dereference NULL when there isn't a XML theme
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | matchbox/theme-engines/mb-wm-theme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matchbox/theme-engines/mb-wm-theme.c b/matchbox/theme-engines/mb-wm-theme.c index 33d4914..014b0fd 100644 --- a/matchbox/theme-engines/mb-wm-theme.c +++ b/matchbox/theme-engines/mb-wm-theme.c @@ -1859,7 +1859,7 @@ mb_wm_theme_simple_paint_decor (MBWMTheme *theme, MBWMDecor *decor) XFillRectangle (xdpy, dd->xpix, gc, 0, 0, w, h); - if (d->show_title && + if (d && d->show_title && (mb_wm_decor_get_type(decor) == MBWMDecorTypeNorth && (title = mb_wm_client_get_name (client)))) { |