From 6a9848eb8388807d13c38cdaceabfc143f6640aa Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 28 Jan 2024 02:53:36 +0100 Subject: Revert "Avoid a redundant NULL check" This reverts commit 17b87e321bfca409c31ce4b4e0e3326eeef92b88. --- mate-panel/panel-profile.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c index 437eb0e3..e2b6841d 100644 --- a/mate-panel/panel-profile.c +++ b/mate-panel/panel-profile.c @@ -1628,13 +1628,12 @@ panel_profile_load_list (GSettings *settings, list = g_settings_get_strv (settings, key); - if (list) { - for (gint i = 0; list[i]; i++) { - load_handler (list[i]); - } + for (gint i = 0; list[i]; i++) { + load_handler (list[i]); + } + if (list) g_strfreev (list); - } } static void -- cgit v1.2.1