[gtk/pre.c99: 1/2] update-icon-cache.c: Declare variables at top-of-block
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/pre.c99: 1/2] update-icon-cache.c: Declare variables at top-of-block
- Date: Fri, 16 Apr 2021 07:38:56 +0000 (UTC)
commit da651ca7fcbd2052d10b1b18b4e8f62e16bba796
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Apr 16 15:36:58 2021 +0800
update-icon-cache.c: Declare variables at top-of-block
This way, things will continue to build on older compilers
gtk/updateiconcache.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index 6703c8b9e8..787e718264 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -623,14 +623,13 @@ scan_directory (const gchar *base_path,
list = g_list_sort (list, (GCompareFunc) strcmp);
for (iterator = list; iterator; iterator = iterator->next)
{
- name = iterator->data;
-
gchar *path;
gboolean retval;
int flags = 0;
Image *image;
gchar *basename, *dot;
+ name = iterator->data;
path = g_build_filename (dir_path, name, NULL);
retval = g_file_test (path, G_FILE_TEST_IS_DIR);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]