We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7bcc1f commit 61b4bc4Copy full SHA for 61b4bc4
0x17-doubly_linked_lists/7-insert_dnodeint.c
@@ -42,6 +42,7 @@ dlistint_t *insert_dnodeint_at_index(dlistint_t **h, unsigned int idx, int n)
42
new_node->next = temp;
43
new_node->prev = temp->prev;
44
temp->prev->next = new_node;
45
+ temp->prev = new_node;
46
47
return (new_node);
48
}
0 commit comments