1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-21 21:57:01 +00:00

(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

View file

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