[list] Initialise node in the get Nth function

Typo in the previous patch.
This commit is contained in:
Charlie Brej 2009-11-28 23:52:53 +00:00
parent 59a015b4af
commit 53563a3fc4

View file

@ -269,6 +269,7 @@ ply_list_get_nth_node (ply_list_t *list,
int index)
{
ply_list_node_t *node;
node = list->first_node;
if (index < 0)
return NULL;
if (index >= list->number_of_nodes)