From 28134883d66f2043c7cc67f47aeaa42f12bec79d Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Thu, 28 Aug 2014 23:03:53 +0100 Subject: [PATCH] small fix in queuePutFirst --- src/queue/put_first.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/queue/put_first.c b/src/queue/put_first.c index be7b57b..0c57289 100644 --- a/src/queue/put_first.c +++ b/src/queue/put_first.c @@ -31,6 +31,7 @@ TR_queuePutFirst(TR_Queue this, void * msg) this->first = TR_new(TR_Queue); this->first->next = current_first; this->first->msg = msg; + this->last = this->last ? this->last : this->first; this->nmsg++; }