]> git.ipfire.org Git - thirdparty/tar.git/commit
Simplify wordsplit code a bit
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Sep 2021 14:34:53 +0000 (07:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Sep 2021 14:36:36 +0000 (07:36 -0700)
commit4f3824743f50808a0079e6057107de53c4a25f22
treef27a91924f8f28dfac96f51d50016b43a0d9320a
parentc5b86d7672fae5e565c657ef78b0339e73180596
Simplify wordsplit code a bit

These changes pacify gcc -Wanalyzer-null-dereference on x86-64 gcc
11.2.1 20210728 (Red Hat 11.2.1-1).
* lib/wordsplit.c (wsnode_tail): Remove unnecessary test.
(coalesce_segment): Coalesce calls to wsnode_len.
lib/wordsplit.c