diff options
author | raveit65 <[email protected]> | 2024-01-28 02:53:56 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2024-02-04 18:37:58 +0100 |
commit | e663fbaeba760003b4088e567af0883534891e59 (patch) | |
tree | fd7b6805cc5d0e022f526e6343bb2539aa12f54e /mate-panel/libpanel-util/panel-keyfile.c | |
parent | 6a9848eb8388807d13c38cdaceabfc143f6640aa (diff) | |
download | mate-panel-e663fbaeba760003b4088e567af0883534891e59.tar.bz2 mate-panel-e663fbaeba760003b4088e567af0883534891e59.tar.xz |
Revert "Reduce scope of variables"
This reverts commit 96c7ebc6dc9e8b8327db04a9570054ee78743353.
Diffstat (limited to 'mate-panel/libpanel-util/panel-keyfile.c')
-rw-r--r-- | mate-panel/libpanel-util/panel-keyfile.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mate-panel/libpanel-util/panel-keyfile.c b/mate-panel/libpanel-util/panel-keyfile.c index b98058c3..0b0104ef 100644 --- a/mate-panel/libpanel-util/panel-keyfile.c +++ b/mate-panel/libpanel-util/panel-keyfile.c @@ -53,6 +53,8 @@ _panel_key_file_make_executable (const gchar *path) { GFile *file; GFileInfo *info; + guint32 current_perms; + guint32 new_perms; file = g_file_new_for_path (path); @@ -70,9 +72,6 @@ _panel_key_file_make_executable (const gchar *path) } if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_UNIX_MODE)) { - guint32 current_perms; - guint32 new_perms; - current_perms = g_file_info_get_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_MODE); new_perms = current_perms | S_IXGRP | S_IXUSR | S_IXOTH; |