diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-01-11 18:56:38 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-01-11 18:56:38 +0000 |
commit | c54be3804064662fcbd582c8c7e5a3425681b5ac (patch) | |
tree | ab34525d0525c829f202b499772ab4d62ca3ae3c /ldso | |
parent | 27d501fdbf0c6932e6170e8dece4d178d912bf94 (diff) |
replace yet another _dl_malloc + _dl_memset with _dl_zalloc
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/ldso.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c index 4dcd99bfe..449328cac 100644 --- a/ldso/ldso/ldso.c +++ b/ldso/ldso/ldso.c @@ -434,8 +434,7 @@ void _dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE load_addr, _dl_loaded_modules->libtype = elf_executable; _dl_loaded_modules->ppnt = (ElfW(Phdr) *) auxvt[AT_PHDR].a_un.a_val; _dl_loaded_modules->n_phent = auxvt[AT_PHNUM].a_un.a_val; - _dl_symbol_tables = rpnt = _dl_malloc(sizeof(struct dyn_elf)); - _dl_memset(rpnt, 0, sizeof(struct dyn_elf)); + _dl_symbol_tables = rpnt = _dl_zalloc(sizeof(struct dyn_elf)); rpnt->dyn = _dl_loaded_modules; app_tpnt->mapaddr = app_mapaddr; app_tpnt->rtld_flags = unlazy | RTLD_GLOBAL; |