[gnome-packagekit/glib2] bugfix: fix a uninitialized return value spotted by clang



commit 3700f40f51526a749b70e05124bba2ea085c41bd
Author: Richard Hughes <richard hughsie com>
Date:   Tue Oct 6 10:52:08 2009 +0100

    bugfix: fix a uninitialized return value spotted by clang

 src/gpk-helper-run.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-helper-run.c b/src/gpk-helper-run.c
index 47423c5..16b6cf2 100644
--- a/src/gpk-helper-run.c
+++ b/src/gpk-helper-run.c
@@ -201,7 +201,7 @@ pk_treeview_add_general_columns (GtkTreeView *treeview)
 static gboolean
 gpk_helper_run_add_desktop_file (GpkHelperRun *helper, const gchar *package_id, const gchar *filename)
 {
-	gboolean ret;
+	gboolean ret = FALSE;
 	gchar *icon = NULL;
 	gchar *text = NULL;
 	gchar *fulltext = NULL;



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