[anjal/anjal-0-1] BUGFIX: GNOME Bug #605785 - Segfault when dragging an empty list



commit faed5b96cf39fb425fc128f95250b398caacc2e0
Author: Yan Li <yanli infradead org>
Date:   Thu Dec 31 13:43:35 2009 +0800

    BUGFIX: GNOME Bug #605785 - Segfault when dragging an empty list

 src/em-tree-store.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/em-tree-store.c b/src/em-tree-store.c
index e2f5b64..f685bb6 100644
--- a/src/em-tree-store.c
+++ b/src/em-tree-store.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -1400,6 +1401,9 @@ emts_child_tree (EMTreeStore *emts, EMTreeNode *node, GPtrArray *array)
 {
 	 EMTreeNode *n;
 
+	 if (!node)
+		 return;
+
 	 if (node->info)
 		  g_ptr_array_add (array, node);
 			   



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