Author: will
Date: Wed Dec 17 00:22:41 2014
New Revision: 275845
URL: https://svnweb.freebsd.org/changeset/base/275845

Log:
  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

Modified:
  head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c

Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c   Tue Dec 16 
23:25:12 2014        (r275844)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c   Wed Dec 17 
00:22:41 2014        (r275845)
@@ -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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to