chiark / gitweb /
missed a critical bit of the q->prev logic!
[disorder] / disobedience / playlists.c
index 3610292c400dbe2f5b1595d4ffb721fb44387eb4..609275eaa1c3bb1470091649afcc55c25325cd76 100644 (file)
@@ -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);