shell: Fix C99'ism

This commit is contained in:
Florian Müllner 2015-07-31 20:25:27 +02:00
parent fed79ce4e6
commit e92f43b83e

View File

@ -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';