Initialize an argument to NULL instead of expecting dlinfo() to do it.
dlinfo() is a weak reference that may not be initialized at the time of execution. The default implementation (in lib/libc/gen/dlfcn.c) neither modifies the address pointed to by the third argument nor returns an error. Differential Revision: https://reviews.freebsd.org/D1326 Reviewed by: markj MFC after: 1 week
This commit is contained in:
parent
cb7430346d
commit
9ad184a98c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275845
@ -110,7 +110,7 @@ dtrace_dof_init(void)
|
|||||||
Elf32_Ehdr *elf;
|
Elf32_Ehdr *elf;
|
||||||
#endif
|
#endif
|
||||||
dof_helper_t dh;
|
dof_helper_t dh;
|
||||||
Link_map *lmp;
|
Link_map *lmp = NULL;
|
||||||
#if defined(sun)
|
#if defined(sun)
|
||||||
Lmid_t lmid;
|
Lmid_t lmid;
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user