strv: Make sure strv_make_nulstr() always returns a valid nulstr
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 11 Nov 2022 10:26:54 +0000 (11:26 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 11 Nov 2022 15:31:20 +0000 (16:31 +0100)
commit5ea173a91b2093664a9ebb9add678edd6f5d1efd
tree58e067652d59e7ec41ad2e3e170eea8991a6f304
parent0f3c342903d1a09577378912717539b530af1fcf
strv: Make sure strv_make_nulstr() always returns a valid nulstr

strv_make_nulstr() is documented to always return a valid nulstr,
but if the input is `NULL` we return a string terminated with only
a single NUL terminator, so let's fix that and always terminate the
resulting string with two NUL bytes.
src/basic/strv.c