diff options
Diffstat (limited to 'utils/ldd.c')
| -rw-r--r-- | utils/ldd.c | 4 | 
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[] = {  | 
