-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unlinking nodes in link lists didn't reset the next pointers to NULL. This became an issue when adding a "recycled" node back into the top of a linked list and it went bonkers. All the "link in" methods expected new nodes that had the next pointers preset to NULL. Now inlinking a node resets the next pointers to NULL as they should.
- Loading branch information
Showing
1 changed file
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters