[gnome-control-center] display:Fix null pointer dereference
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] display:Fix null pointer dereference
- Date: Mon, 14 Dec 2020 01:52:56 +0000 (UTC)
commit e5b68871f86d64026c09e06cbe4f611aecf2d130
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 d72bf6d18..dfb914064 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -922,6 +922,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]