Initialise some uninitialised variables.

Thanks to: valgrind
This commit is contained in:
Doug Rabson 2003-12-31 15:10:41 +00:00
parent eae42a5949
commit ae59481b1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124020

View File

@ -514,6 +514,7 @@ digest_dynamic(Obj_Entry *obj, int early)
const Elf_Dyn *dyn_rpath = NULL;
int plttype = DT_REL;
obj->bind_now = false;
for (dynp = obj->dynamic; dynp->d_tag != DT_NULL; dynp++) {
switch (dynp->d_tag) {
@ -991,6 +992,7 @@ init_rtld(caddr_t mapbase)
* The "path" member can't be initialized yet because string constatns
* cannot yet be acessed. Below we will set it correctly.
*/
memset(&objtmp, 0, sizeof(objtmp));
objtmp.path = NULL;
objtmp.rtld = true;
objtmp.mapbase = mapbase;