]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: pwd: reduce variable scope
authorCollin Funk <collin.funk1@gmail.com>
Sun, 7 Dec 2025 23:27:29 +0000 (15:27 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 7 Dec 2025 23:35:16 +0000 (15:35 -0800)
commit881ac237befe005593e99060f47867da32448d5d
tree9c8dfd778cf67d06b53cbbdf2bf1033783a68df0
parent8af2d813b9a8e8741dd1c28b143b231d783d7221
maint: pwd: reduce variable scope

* src/pwd.c (find_dir_entry, robust_getcwd): Declare variables where
they are used.
(logical_getcwd, main): Likewise. Constify the result of getenv, since
the result cannot be modified.
src/pwd.c