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