[gnome-shell] shell: Fix C99'ism



commit e92f43b83eb7596c56a54c8552914fed71992535
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jul 31 20:25:27 2015 +0200

    shell: Fix C99'ism

 src/shell-app-system.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-app-system.c b/src/shell-app-system.c
index 77878e9..3772e64 100644
--- a/src/shell-app-system.c
+++ b/src/shell-app-system.c
@@ -399,9 +399,10 @@ char ***
 shell_app_system_search (const char *search_string)
 {
     char ***results = g_desktop_app_info_search (search_string);
+    char ***groups, **ids;
 
-    for (char ***groups = results; *groups; groups++)
-      for (char **ids = *groups; *ids; ids++)
+    for (groups = results; *groups; groups++)
+      for (ids = *groups; *ids; ids++)
         if (!g_utf8_validate (*ids, -1, NULL))
           **ids = '\0';
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]