From: Eric Biggers Date: Mon, 17 Dec 2012 03:29:16 +0000 (-0600) Subject: main_writer_thread_proc(): Re-instate removed condition X-Git-Tag: v1.2.1~43 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=d00c015780432f419a793c459ca332b7892bfe2a main_writer_thread_proc(): Re-instate removed condition --- diff --git a/src/write.c b/src/write.c index 292708c7..a23aa450 100644 --- a/src/write.c +++ b/src/write.c @@ -1020,6 +1020,7 @@ static int main_writer_thread_proc(struct list_head *stream_list, // // Otherwise, write all the chunks we can. while (cur_lte != NULL && + !list_empty(&cur_lte->msg_list) && (msg = container_of(cur_lte->msg_list.next, struct message, list))->complete)