diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-16 14:55:30 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-16 14:55:30 +0100 |
commit | d4c816135ef7acaa03f303b2902734d766f93b01 (patch) | |
tree | 98ca64c83ee0a0d98e426a3a3b467233d0f918cd | |
parent | 084939b1e5e692e73dbcb299c7d728d6c2928cbc (diff) |
pkt: Initialize size member properly
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | pkt.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |