]> git.ipfire.org Git - location/libloc.git/commit
stringpool: Always add an empty string
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 May 2020 16:53:53 +0000 (16:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 May 2020 16:53:53 +0000 (16:53 +0000)
commit010fe9b6566fd6583bd5d706cd47df8604965496
treec5b517a86167cacc6010e12e9b3ac60571631d58
parentc7db968aa347a099ff28164ef150a1c5f1e3ef15
stringpool: Always add an empty string

This will create an empty string at the first byte of the pool
and is helpful for our database metadata (vendor, license, de-
scription) which can be zero and would therefore return the
first string in the pool.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/stringpool.c