fix uninitialized dyn variable in map_library

this can only happen for invalid library files, but they were not
detected reliably because the variable was uninitialized.
This commit is contained in:
Rich Felker 2013-08-02 09:25:12 -04:00
parent 38f44d6923
commit 7443dd271c
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ static void *map_library(int fd, struct dso *dso)
Phdr *ph, *ph0;
unsigned prot;
unsigned char *map, *base;
size_t dyn;
size_t dyn=0;
size_t tls_image=0;
size_t i;