diff --git a/src/packet-queue.c b/src/packet-queue.c index da5ad3c9d8..7906ffaff1 100644 --- a/src/packet-queue.c +++ b/src/packet-queue.c @@ -28,7 +28,7 @@ Packet *PacketDequeue (PacketQueue *q) { Packet *p = q->bot; if (p == NULL) { /* queue empty, alloc a new packet */ - Packet *p = malloc(sizeof(Packet)); + p = malloc(sizeof(Packet)); if (p == NULL) { printf("ERROR: malloc failed: %s\n", strerror(errno)); return NULL;