mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 17:08:35 +02:00
[list] Initialise node in the get Nth function
Typo in the previous patch.
This commit is contained in:
parent
59a015b4af
commit
53563a3fc4
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue