]> git.ipfire.org Git - thirdparty/coreutils.git/commit
csplit: pacify GCC 13
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Apr 2023 00:14:54 +0000 (17:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Apr 2023 01:20:19 +0000 (18:20 -0700)
commitd178b497542b19571dd6896db561c46ec2e451c3
treea7900156101189d20d33e38e7432964e5df4634c
parent941027eeb77e3cfa2923f877d5ba45d7d70a39a5
csplit: pacify GCC 13

* src/csplit.c (load_buffer): Refactor for clarity.
This also xpacifies gcc -Wanalyzer-use-of-uninitialized-value.
When reallocating the buffer, grow it by a factor of 1.5, not 2.
src/csplit.c