join: fix recently introduced NUL bug
commit56e9acb2927874770363462cc6f5d2ee7d2b4c6d
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Oct 2023 17:47:34 +0000 (30 10:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Oct 2023 17:49:44 +0000 (30 10:49 -0700)
treef6718eac2117a3d3ed400f68cc0dc941c85a7e3a
parentbd45f0963c42ee0d9d31b065d9e60e7435ed0523
join: fix recently introduced NUL bug

* src/join.c (xfields): Simplify and fix bug with fields
that start with a NUL byte when -t is not used.
* tests/misc/join-utf8.sh: Also test when -t is not used,
and when a field starts with NUL.
src/join.c
tests/misc/join-utf8.sh