From 916bd8eff0cac4abfd816b95f104064965623f3f Mon Sep 17 00:00:00 2001 From: Ron Date: Sat, 27 Jun 2009 04:44:24 +0930 Subject: Don't shadow stat with a local variable Signed-off-by: Ron Lee Signed-off-by: Mike Frysinger --- utils/ldd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/ldd.c') diff --git a/utils/ldd.c b/utils/ldd.c index 02b37f1cb..e7a94cbc4 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -683,8 +683,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[] = { -- cgit v1.2.3