summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2014-11-02 12:25:07 +0300
committerinfirit <[email protected]>2014-11-28 09:37:34 +0100
commit2d1ef43c9ba6e41a173dff81485441613cf518b6 (patch)
tree707b090d38efe86330d2f7a02da81ad44057a215
parent1d568e8f925a24a88422e74afc65405fbf171e3a (diff)
downloadmate-settings-daemon-2d1ef43c9ba6e41a173dff81485441613cf518b6.tar.bz2
mate-settings-daemon-2d1ef43c9ba6e41a173dff81485441613cf518b6.tar.xz
fix possible dereference of NULL pointer
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index 9f8a5a9..3629afe 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -870,7 +870,7 @@ make_laptop_setup (MateRRScreen *screen)
}
}
- if (config_is_all_off (result)) {
+ if (result && config_is_all_off (result)) {
mate_rr_config_free (result);
result = NULL;
}