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