Commit dba76798000795d2c11d750b24632b390d24d790

Authored by Georg Hopp
1 parent b9b5faa3

small fix in queuePutFirst

Showing 1 changed file with 1 additions and 1 deletions
@@ -28,7 +28,7 @@ TR_queuePutFirst(TR_Queue this, void * msg) @@ -28,7 +28,7 @@ TR_queuePutFirst(TR_Queue this, void * msg)
28 { 28 {
29 TR_Queue current_first = this->first; 29 TR_Queue current_first = this->first;
30 30
31 - this->first = TR_new(TR_Queue); 31 + this->first = this->next = TR_new(TR_Queue);
32 this->first->next = current_first; 32 this->first->next = current_first;
33 this->first->msg = msg; 33 this->first->msg = msg;
34 this->last = this->last ? this->last : this->first; 34 this->last = this->last ? this->last : this->first;
Please register or login to post a comment