From: Richard Kettlewell Date: Tue, 24 Nov 2009 20:33:58 +0000 (+0000) Subject: missed a critical bit of the q->prev logic! X-Git-Tag: 5.0~45^2~8 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/eaf4cd2e71f25b8051aa1eb0388096272966c328 missed a critical bit of the q->prev logic! --- diff --git a/disobedience/playlists.c b/disobedience/playlists.c index 3610292..609275e 100644 --- a/disobedience/playlists.c +++ b/disobedience/playlists.c @@ -766,7 +766,7 @@ static void playlists_editor_received_tracks(void *v, /* No such playlist, presumably we'll get a deleted event shortly */ return; /* Translate the list of tracks into queue entries */ - struct queue_entry *newq, **qq = &newq, *qprev; + struct queue_entry *newq, **qq = &newq, *qprev = NULL; hash *h = hash_new(sizeof(int)); for(int n = 0; n < nvec; ++n) { struct queue_entry *q = xmalloc(sizeof *q);