[gtk+] Don't return uninitialized pointers



commit 9ec4fb60f20ec3bcf18e120b5851d4aa2c5ca570
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 13 09:45:04 2009 -0400

    Don't return uninitialized pointers
    
    This was giving me segfaults somewhere else.

 gtk/gtkiconview.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 240e373..c517b0f 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;



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