summaryrefslogtreecommitdiffstats
path: root/utils/ldd.c
diff options
context:
space:
mode:
authorRon <ron@debian.org>2009-06-27 04:44:24 +0930
committerAustin Foxley <austinf@cetoncorp.com>2009-07-09 01:35:50 -0700
commit41167151599307ea9574a5342e7e030779424e25 (patch)
treef3c62e4ed06ebcc6b7bb4ced55d4def54e01e2fb /utils/ldd.c
parente04942f86c38f31f934632fbb7976a56dd94eb50 (diff)
downloaduClibc-alpine-41167151599307ea9574a5342e7e030779424e25.tar.bz2
uClibc-alpine-41167151599307ea9574a5342e7e030779424e25.tar.xz
Don't shadow stat with a local variable
Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'utils/ldd.c')
-rw-r--r--utils/ldd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index 9874a30e8..41da97360 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -707,8 +707,8 @@ foo:
&& ehdr->e_ident[EI_VERSION] == EV_CURRENT
&& MATCH_MACHINE(ehdr->e_machine))
{
- struct stat statbuf;
- if (stat(interp->path, &statbuf) == 0 && S_ISREG(statbuf.st_mode)) {
+ struct stat st;
+ if (stat(interp->path, &st) == 0 && S_ISREG(st.st_mode)) {
pid_t pid;
int status;
static const char *const environment[] = {