Browse Source

ldso: fix build error due to missing variable 'st'

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>
Douglas Mencken 13 years ago
parent
commit
63e61626c1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ldso/ldso/ldso.c

+ 1 - 0
ldso/ldso/ldso.c

@@ -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;