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:
parent
db38b699b4
commit
a9d65c5fae
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user