summaryrefslogtreecommitdiff
path: root/pkt.h
diff options
context:
space:
mode:
Diffstat (limited to 'pkt.h')
-rw-r--r--pkt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkt.h b/pkt.h
index 04302f3..7a5d9be 100644
--- a/pkt.h
+++ b/pkt.h
@@ -44,7 +44,7 @@ static inline bool pkt_invariant(struct pkt *p)
static inline struct pkt *pkt_alloc(size_t size)
{
- struct pkt *p = xmalloc(sizeof(*q) + size);
+ struct pkt *p = xmalloc(sizeof(*p) + size);
uint8_t *data = (uint8_t *)p + sizeof(*p);
p->head = p->data = p->tail = data;