diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-02-11 23:24:14 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-02-13 11:54:39 -0500 |
commit | afe773b01a704b98a350a36fa518bfcd6a54323b (patch) | |
tree | c2ce124ff5fbe8314b7d7932696f7e59e7ebce6b /src/udev/udev-builtin-input_id.c | |
parent | 06e948901a6f70b4d10c90d05a174da0663d1aba (diff) |
basic/strv: fix strv_join for first empty argument
Empty strings were ignored in strv_join, but only if they were at the beginning
of the string. Empty strings after at least one non-empty item were treated
normally.
Previously:
{"x"} → "x"
{"x", ""} → "x"
{"x", "", ""} → "x::"
{""} → ""
{"", ""} → ""
{"", "", ""} → ""
{"", "x"} → "x"
{"", "x", ""} → "x:"
Now:
{"x"} → "x"
{"x", ""} → "x"
{"x", "", ""} → "x::"
{""} → ""
{"", ""} → ":"
{"", "", ""} → "::"
{"", "x"} → ":x"
{"", "x", ""} → ":x:"
Diffstat (limited to 'src/udev/udev-builtin-input_id.c')
0 files changed, 0 insertions, 0 deletions