[gtk+] Avoid an uninitialized variable access
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid an uninitialized variable access
- Date: Sun, 16 Jun 2013 03:37:40 +0000 (UTC)
commit d1fd74417c5d28c1475966143efd166c6fdcda58
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 15 23:36:33 2013 -0400
Avoid an uninitialized variable access
testsuite/gtk/treeview.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/testsuite/gtk/treeview.c b/testsuite/gtk/treeview.c
index 34676a5..4d19723 100644
--- a/testsuite/gtk/treeview.c
+++ b/testsuite/gtk/treeview.c
@@ -159,6 +159,7 @@ test_row_separator_height_func (GtkTreeModel *model,
path = gtk_tree_model_get_path (model, iter);
if (gtk_tree_path_get_indices (path)[0] == 2)
ret = TRUE;
+ g_print ("row %d separator %d\n", gtk_tree_path_get_indices (path)[0], ret);
gtk_tree_path_free (path);
return ret;
@@ -174,7 +175,7 @@ test_row_separator_height (void)
GtkListStore *store;
GtkWidget *window;
GtkWidget *tree_view;
- GdkRectangle rect, cell_rect;
+ GdkRectangle rect = { 0, }, cell_rect = { 0, };
store = gtk_list_store_new (1, G_TYPE_STRING);
gtk_list_store_insert_with_values (store, &iter, 0, 0, "Row content", -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]