summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2014-12-17 00:22:41 +0000
committerwill <will@FreeBSD.org>2014-12-17 00:22:41 +0000
commit860720e7d51be066836043afe3a6063e4d2835c8 (patch)
tree76266fa4cef228c01a28d86f9b37a4dbb3454ae1 /cddl
parent22481bc2c20ca4fd2e3eb219fce7c3b16e226b98 (diff)
downloadFreeBSD-src-860720e7d51be066836043afe3a6063e4d2835c8.zip
FreeBSD-src-860720e7d51be066836043afe3a6063e4d2835c8.tar.gz
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
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/drti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c b/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
index ccd4f9b..fc86eb7 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
@@ -110,7 +110,7 @@ dtrace_dof_init(void)
Elf32_Ehdr *elf;
#endif
dof_helper_t dh;
- Link_map *lmp;
+ Link_map *lmp = NULL;
#if defined(sun)
Lmid_t lmid;
#else
OpenPOWER on IntegriCloud