libdwarf: Make an out-pointer assignment unconditional.

There is no reason for diep to ever be NULL, since in that case we would
simply be leaking memory.

CID:		1418801
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2020-03-20 16:24:06 +00:00
parent db38b699b4
commit a9d65c5fae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359172

View File

@ -70,8 +70,7 @@ _dwarf_die_add(Dwarf_CU cu, uint64_t offset, uint64_t abnum, Dwarf_Abbrev ab,
die->die_cu = cu;
die->die_dbg = cu->cu_dbg;
if (diep != NULL)
*diep = die;
*diep = die;
return (DW_DLE_NONE);
}