basic/strbuf: include empty strings in count
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 Mar 2018 08:32:42 +0000 (10:32 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 Mar 2018 13:28:03 +0000 (15:28 +0200)
commit435ce146ac6d7ea3c9ed5318b2694179db887cee
tree4165be3604b7a020e8f07a54895c8cbead5ce2a6
parent2fb076ad43772b808813f88dd26b300336b63671
basic/strbuf: include empty strings in count

Not that it matters much, but it seems cleaner to also count those
inputs, even if they do not consume extra storage space.

The test is extended to include an empty input and counts in the test are
adjusted to include it.
src/basic/strbuf.c
src/test/test-strbuf.c