From d14548eb01adccdd6e8b0f95f3dd3c28a23f2f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 31 Jul 2015 20:25:27 +0200 Subject: [PATCH] shell: Fix C99'ism --- src/shell-app-system.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shell-app-system.c b/src/shell-app-system.c index 77878e93e..3772e6421 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';