Skip to content

Commit

Permalink
ldso: fix build error due to missing variable 'st'
Browse files Browse the repository at this point in the history
Fix a build error triggered when LDSO_PRELOAD_FILE_SUPPORT is enabled
due to missing definition of 'st' variable.

Signed-off-by: Douglas Mencken <dougmencken@gmail.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
  • Loading branch information
dougmencken authored and amorosoc committed Jul 12, 2011
1 parent 1537893 commit 63e6162
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ldso/ldso/ldso.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,7 @@ of this helper program; chances are you did not intend to run this program.\n\
char *preload;
int fd;
char c, *cp, *cp2;
struct stat st;

if (_dl_stat(LDSO_PRELOAD, &st) || st.st_size == 0) {
break;
Expand Down

0 comments on commit 63e6162

Please sign in to comment.