ShellApp: Fix warning with call to g_strv_length()

There is no implicit cast from const char * const * to char **.
This commit is contained in:
Owen W. Taylor 2012-02-07 13:04:50 -05:00
parent 2864c360bc
commit 46caf6d673

View File

@ -1322,7 +1322,7 @@ shell_app_init_search_data (ShellApp *app)
{
int i;
app->casefolded_keywords = g_new0 (char*, g_strv_length (keywords) + 1);
app->casefolded_keywords = g_new0 (char*, g_strv_length ((char **)keywords) + 1);
i = 0;
while (keywords[i])