ldd: define the "unused" variable

The "unused" variable could be use unitialized, which is an issue if ldd
is ran with "-u". Fix that by defining the variable to an empty value,
just like it is already done for the bind_now, warn and verbose
variables.

Reported-by: Johan Palmqvist <johan.palmqvist@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
Aurelien Jarno 2025-09-12 21:18:41 +02:00
parent d6666eea3e
commit 13d67746cb
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ RTLDLIST=@RTLD@
warn=
bind_now=
verbose=
unused=
while test $# -gt 0; do
case "$1" in