[PATCH 5/6] gnome-control-center: NULL check on configuration_new_current
- From: James Westby <james westby canonical com>
- To: gnomecc-list gnome org
- Subject: [PATCH 5/6] gnome-control-center: NULL check on configuration_new_current
- Date: Tue, 15 Apr 2008 14:59:17 +0100
Another simple NULL check for the return value of
configuration_new_current()
--- gnome-control-center-2.22.1/capplets/display/xrandr-capplet.c
2008-04-14 15:55:10.000000000 +0100
+++ gnome-control-center-2.22.1.new/capplets/display/xrandr-capplet.c
2008-04-14 15:55:41.000000000 +0100
@@ -119,6 +119,9 @@
current = configuration_new_current (app->screen);
+ if (!current)
+ return;
+
if (app->current_configuration)
configuration_free (app->current_configuration);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]