summaryrefslogtreecommitdiff
path: root/src/gui/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-02 18:54:33 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-02 18:54:33 (GMT)
commit5db9effac12d781f179e329ea138fb531a5ae2a0 (patch)
tree9420cb1fbf2ae5a47f1b4b2d09c13ca582eebf26 /src/gui/core
parentf16787410dd6eaf48df986644d0c3ac2b021748b (diff)
Got ride of some uninitialized variable usages.
Diffstat (limited to 'src/gui/core')
-rw-r--r--src/gui/core/panels.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/core/panels.c b/src/gui/core/panels.c
index 4564f86..71aee86 100644
--- a/src/gui/core/panels.c
+++ b/src/gui/core/panels.c
@@ -181,6 +181,8 @@ bool _browse_all_item_panels(bool skip, handle_panel_item_fc handle, void *data)
if (skip)
welcome = get_panel_item_by_name(PANEL_WELCOME_ID);
+ else
+ welcome = NULL;
panels_list_for_each(iter, _panels_list)
{
@@ -193,8 +195,7 @@ bool _browse_all_item_panels(bool skip, handle_panel_item_fc handle, void *data)
}
- if (skip)
- g_object_unref(G_OBJECT(welcome));
+ g_clear_object(&welcome);
return result;