shell: Fix C99'ism
This commit is contained in:
parent
63b6ed8d57
commit
d14548eb01
@ -399,9 +399,10 @@ char ***
|
|||||||
shell_app_system_search (const char *search_string)
|
shell_app_system_search (const char *search_string)
|
||||||
{
|
{
|
||||||
char ***results = g_desktop_app_info_search (search_string);
|
char ***results = g_desktop_app_info_search (search_string);
|
||||||
|
char ***groups, **ids;
|
||||||
|
|
||||||
for (char ***groups = results; *groups; groups++)
|
for (groups = results; *groups; groups++)
|
||||||
for (char **ids = *groups; *ids; ids++)
|
for (ids = *groups; *ids; ids++)
|
||||||
if (!g_utf8_validate (*ids, -1, NULL))
|
if (!g_utf8_validate (*ids, -1, NULL))
|
||||||
**ids = '\0';
|
**ids = '\0';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user