]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: (cell) consistently handle NULL argument
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 28 Sep 2023 06:24:10 +0000 (08:24 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 28 Sep 2023 06:30:26 +0000 (08:30 +0200)
commit47a54ac9b37ccf2ff830c61da52b062bd76508f4
treec59520ef38e5f65b7960b92d9d001c1b6d4946fd
parentbcb40a762cbd98b8098c5ed80aee4576d6f9c31a
libsmartcols: (cell) consistently handle NULL argument

Some functions allow passing NULL, some don't.
Even users internal to util-linux are passing NULL parameters to these
functions, even for ones where it is not allowed.

Unify the API. As there may be external users that rely on the
NULL-accepting behavior for some functions use it everywhere.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libsmartcols/src/cell.c