(trunk libT) oops, r12313 committed the wrong version of list.c

This commit is contained in:
Jordan Lee 2011-04-05 00:59:49 +00:00
parent e0f6ade71e
commit 46dd6f17ab
1 changed files with 6 additions and 3 deletions

View File

@ -37,9 +37,12 @@ node_alloc( void )
static void
node_free( tr_list* node )
{
*node = TR_LIST_CLEAR;
node->next = recycled_nodes;
recycled_nodes = node;
if( node != NULL )
{
*node = TR_LIST_CLEAR;
node->next = recycled_nodes;
recycled_nodes = node;
}
}
/***