summaryrefslogtreecommitdiff
path: root/mate-panel
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2024-01-28 02:53:36 +0100
committerraveit65 <[email protected]>2024-02-04 18:37:58 +0100
commit6a9848eb8388807d13c38cdaceabfc143f6640aa (patch)
tree616bd3522cbcdb66ecda4be5c397770be81bb718 /mate-panel
parent03f528e7c28cddf1fd68cb63ee4372d715aeacc2 (diff)
downloadmate-panel-6a9848eb8388807d13c38cdaceabfc143f6640aa.tar.bz2
mate-panel-6a9848eb8388807d13c38cdaceabfc143f6640aa.tar.xz
Revert "Avoid a redundant NULL check"
This reverts commit 17b87e321bfca409c31ce4b4e0e3326eeef92b88.
Diffstat (limited to 'mate-panel')
-rw-r--r--mate-panel/panel-profile.c9
1 files 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