]> git.ipfire.org Git - thirdparty/coreutils.git/commit
split: avoid NULL + 1
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Sep 2021 20:44:46 +0000 (13:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Sep 2021 22:08:28 +0000 (15:08 -0700)
commitf8dc5a6215846f289d9e9c4c18a7c51f008f76d3
treeab3ed3408e12484104f7ef93eb9d524fa9c1e0c5
parented1c58427d574fb4ff0cb8f915eb0d554000ceeb
split: avoid NULL + 1

* src/split.c (lines_chunk_split): Don’t add to a null pointer.
It’s undefined behavior, and it’s unnecessarily confusing
regardless.
src/split.c