Don't return uninitialized pointers

This was giving me segfaults somewhere else.
This commit is contained in:
Matthias Clasen 2009-08-13 09:45:04 -04:00
parent 939e55223c
commit 9ec4fb60f2

View File

@ -3503,11 +3503,11 @@ gtk_icon_view_get_item_at_coords (GtkIconView *icon_view,
} }
} }
if (only_in_cell)
return NULL;
if (cell_at_pos) if (cell_at_pos)
*cell_at_pos = NULL; *cell_at_pos = NULL;
if (only_in_cell)
return NULL;
} }
return item; return item;