Hacker News new | ask | show | jobs
by alkoumpa 3527 days ago
Not only is it duplicate, it also contains nasty "behavior". If prev->next equals NULL then dereferencing this would result in segfault, so in this case another if statement is required.