From 2d1ef43c9ba6e41a173dff81485441613cf518b6 Mon Sep 17 00:00:00 2001 From: monsta Date: Sun, 2 Nov 2014 12:25:07 +0300 Subject: fix possible dereference of NULL pointer --- plugins/xrandr/msd-xrandr-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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; } -- cgit v1.2.1