[gnome-shell] ShellApp: Fix warning with call to g_strv_length()



commit 46caf6d673f2227ab3df2d4393ba0125c6447104
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Feb 7 13:04:50 2012 -0500

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index 31d1385..81c761b 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])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]