Commit bf4ac66f authored by Michael Tremer's avatar Michael Tremer

stringpool: Allow adding empty strings

This is what we do when we initialize the stringpool
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent d66bfbaa
......@@ -81,7 +81,7 @@ static int loc_stringpool_grow(struct loc_stringpool* pool, size_t length) {
}
static off_t loc_stringpool_append(struct loc_stringpool* pool, const char* string) {
if (!string || !*string)
if (!string)
return -EINVAL;
DEBUG(pool->ctx, "Appending '%s' to string pool at %p\n", string, pool);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment