From eaf4cd2e71f25b8051aa1eb0388096272966c328 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Tue, 24 Nov 2009 20:33:58 +0000 Subject: [PATCH] missed a critical bit of the q->prev logic! Organization: Straylight/Edgeware From: Richard Kettlewell --- disobedience/playlists.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- [mdw]