aboutsummaryrefslogtreecommitdiffstats
path: root/queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'queue.c')
-rw-r--r--queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/queue.c b/queue.c
index 187519a..b395acf 100644
--- a/queue.c
+++ b/queue.c
@@ -24,7 +24,7 @@ void Queue_Push(struct Queue *q,void *data)
struct Queue_Node *temp=malloc(sizeof(struct Queue_Node));
q->last->prev=temp;
temp->data=data;
-
+ temp->prev=NULL;
q->last=temp;
++q->size;
}