[anjal] BUGFIX: GNOME Bug #605785 - Segfault when dragging an empty list
- From: Yan Li <yanli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjal] BUGFIX: GNOME Bug #605785 - Segfault when dragging an empty list
- Date: Thu, 21 Jan 2010 07:15:12 +0000 (UTC)
commit 15068540e7e4f14cc3e653a40a5a0ed1c482e1ea
Author: Yan Li <yanli infradead org>
Date: Thu Jan 21 14:10:20 2010 +0800
BUGFIX: GNOME Bug #605785 - Segfault when dragging an empty list
src/em-tree-store.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/em-tree-store.c b/src/em-tree-store.c
index 7181293..f2c9bc9 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
@@ -42,7 +43,7 @@
#define _PRIVATE(x) (g_type_instance_get_private((GTypeInstance *)(x), em_tree_store_get_type()))
-#define node_has_children(node) ((node->flags & EM_TREE_NODE_LEAF) == 0 && node->children.head != (EDListNode *)&node->children.tail)
+#define node_has_children(node) ((node) && (node->flags & EM_TREE_NODE_LEAF) == 0 && node->children.head != (EDListNode *)&node->children.tail)
static time_t emts_thread_time (EMTreeStore *emts, EMTreeNode *node, char **);
static gboolean emts_thread_unread (EMTreeStore *emts, EMTreeNode *node);
static void emts_prune_empty(EMTreeStore *emts, EMTreeNode *node);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]