]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: cp: reduce variable scope
authorCollin Funk <collin.funk1@gmail.com>
Wed, 10 Dec 2025 05:05:22 +0000 (21:05 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Thu, 11 Dec 2025 02:50:53 +0000 (18:50 -0800)
commit55aa5afbafdeb155581e55d795295fccfa2dc871
tree0620d5698811373415dfb122b71541e084e7f188
parent71250b2772d62bc12845b76a497d8233ddecdf78
maint: cp: reduce variable scope

* src/cp.c (re_protect): Initialize variables where they are declared.
(make_dir_parents_private, do_copy, main): Declare variables where they
are used instead of at the start of the block.
src/cp.c