summaryrefslogtreecommitdiff
path: root/gtk/gtkiconview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2009-08-13 09:45:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2009-08-13 09:47:20 -0400
commit9ec4fb60f20ec3bcf18e120b5851d4aa2c5ca570 (patch)
treebf72c927ebac6923db9f763127ca3395b0201d6e /gtk/gtkiconview.c
parent939e55223cefb14ec4a6866c073bd79ee75eaccc (diff)
downloadgtk+-9ec4fb60f20ec3bcf18e120b5851d4aa2c5ca570.tar.gz
Don't return uninitialized pointers
This was giving me segfaults somewhere else.
Diffstat (limited to 'gtk/gtkiconview.c')
-rw-r--r--gtk/gtkiconview.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 240e3739cd..c517b0fb90 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -3503,11 +3503,11 @@ gtk_icon_view_get_item_at_coords (GtkIconView *icon_view,
}
}
- if (only_in_cell)
- return NULL;
-
if (cell_at_pos)
*cell_at_pos = NULL;
+
+ if (only_in_cell)
+ return NULL;
}
return item;