summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-16 14:55:30 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-16 14:55:30 +0100
commitd4c816135ef7acaa03f303b2902734d766f93b01 (patch)
tree98ca64c83ee0a0d98e426a3a3b467233d0f918cd
parent084939b1e5e692e73dbcb299c7d728d6c2928cbc (diff)
pkt: Initialize size member properly
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--pkt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkt.h b/pkt.h
index 30caae5..5b8640c 100644
--- a/pkt.h
+++ b/pkt.h
@@ -49,6 +49,7 @@ static inline struct pkt *pkt_alloc(size_t size)
uint8_t *data = (uint8_t *)p + sizeof(*p);
p->data = p->tail = data;
+ p->size = size;
return p;
}