changeset 33475:b1bda1dded08

When adding a playlist item, preventively set its next pointer to NULL.
author ib
date Sun, 05 Jun 2011 14:54:41 +0000
parents d45052aa8b74
children d068eac6cbf9
files gui/interface.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Sun Jun 05 14:45:49 2011 +0000
+++ b/gui/interface.c	Sun Jun 05 14:54:41 2011 +0000
@@ -1075,6 +1075,7 @@
 
             next->next = item;
             item->prev = next;
+            item->next = NULL;
         } else {
             item->prev = item->next = NULL;
             plCurrent  = plList = item;