changeset 18541:2011554e1377

Fix compile warnings that only shows up with -O3. This may have caused some weird drawing issues in empty trees, especially for the scrollbars.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 15 Jul 2007 12:49:23 +0000
parents 612bc00efe20
children 84d184163805 8838b67b1ea0
files finch/libgnt/gnttree.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c	Sun Jul 15 11:59:48 2007 +0000
+++ b/finch/libgnt/gnttree.c	Sun Jul 15 12:49:23 2007 +0000
@@ -410,7 +410,7 @@
 	int start, i;
 	GntWidget *widget = GNT_WIDGET(tree);
 	GntTreeRow *row;
-	int pos, up, down;
+	int pos, up, down = 0;
 	int rows, scrcol;
 
 	if (!GNT_WIDGET_IS_FLAG_SET(GNT_WIDGET(tree), GNT_WIDGET_MAPPED))
@@ -547,7 +547,7 @@
 	rows--;
 	if (rows > 0)
 	{
-		int total;
+		int total = 0;
 		int showing, position;
 
 		get_next_n_opt(tree->root, g_list_length(tree->list), &total);