[gitg] Fixed bug in uninitialized value for revert result



commit 747be60b24c4c61c39d6147edfd1363d999d2e6f
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Fri Mar 12 08:57:31 2010 +0100

    Fixed bug in uninitialized value for revert result

 gitg/gitg-commit-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-commit-view.c b/gitg/gitg-commit-view.c
index d4e4a2a..0888cdd 100644
--- a/gitg/gitg-commit-view.c
+++ b/gitg/gitg-commit-view.c
@@ -1645,7 +1645,7 @@ on_stage_changes(GtkAction *action, GitgCommitView *view)
 static void
 do_revert_changes(GitgCommitView *view)
 {
-	gboolean ret;
+	gboolean ret = TRUE;
 
 	if (view->priv->context_type == CONTEXT_TYPE_FILE)
 	{



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