From 46caf6d673f2227ab3df2d4393ba0125c6447104 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 7 Feb 2012 13:04:50 -0500 Subject: [PATCH] ShellApp: Fix warning with call to g_strv_length() There is no implicit cast from const char * const * to char **. --- src/shell-app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell-app.c b/src/shell-app.c index 31d138534..81c761b50 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -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])