[gnome-control-center/gnome-3-8] shell: Fix compile-time warning



commit c537acdbfe54175de4e0e84c5e28ac0a10dd2832
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Apr 29 14:34:36 2013 +0200

    shell: Fix compile-time warning
    
    cc-window.c:561:12: warning: 'matches' may be used uninitialized in this function [-Wmaybe-uninitialized]

 shell/cc-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 032e0ad..4e337ab 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -558,7 +558,7 @@ model_filter_func (GtkTreeModel    *model,
                    CcWindowPrivate *priv)
 {
   char **terms, **t;
-  gboolean matches;
+  gboolean matches = FALSE;
 
   if (!priv->filter_string)
     return FALSE;


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