fixed a variable declaration issue in queue.c