[gnome-control-center/gnome-3-38] display:Fix null pointer dereference
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-38] display:Fix null pointer dereference
- Date: Thu, 7 Jan 2021 20:39:54 +0000 (UTC)
commit d26e4c1d292c4a663a320a4b05501d926ae81f08
Author: vitorramos <ramos vitor89 gmail com>
Date: Wed Nov 25 16:55:20 2020 +0100
display:Fix null pointer dereference
panels/display/cc-display-panel.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index dfca98cc6..f58aaa8b5 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -866,6 +866,10 @@ reset_current_config (CcDisplayPanel *panel)
panel->current_output = NULL;
current = cc_display_config_manager_get_current (panel->manager);
+
+ if (!current)
+ return;
+
cc_display_config_set_minimum_size (current, MINIMUM_WIDTH, MINIMUM_HEIGHT);
panel->current_config = current;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]