]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[list] Initialise node in the get Nth function
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sat, 28 Nov 2009 23:52:53 +0000 (23:52 +0000)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sat, 28 Nov 2009 23:52:53 +0000 (23:52 +0000)
Typo in the previous patch.

src/libply/ply-list.c

index 32d65d91878e2ca0a24d2197fe8667099fcd5116..5e7db4e41327e70e02487d4aa1e1cb4c39e98731 100644 (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)