Re: [PATCH 2/2] commit-slab: declare functions "static inline"
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Dec 1, 2013, 10:36 UTC
- Message-ID
- <CACsJy8CnxvPRwC_xXgBNF_JEmkpfnk=faMwOWtkJOFU-18aHgA@mail.gmail.com>
- In-Reply-To
- <f4d1ff9f487f797da35faa86c72d11832903a50d.1385405977.git.tr@thomasrast.ch>
Thomas,
As you're touching this, perhaps you coud fix this line in slabname_at() too?
s->slab = xrealloc(s->slab, (nth_slab + 1) * sizeof(s->slab));
I think it should be sizeof(*s->slab), not sizeof(s->slab), even though the end result is the same.
-- Duy