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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359172
@ -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_cu = cu;
|
||||||
die->die_dbg = cu->cu_dbg;
|
die->die_dbg = cu->cu_dbg;
|
||||||
|
|
||||||
if (diep != NULL)
|
*diep = die;
|
||||||
*diep = die;
|
|
||||||
|
|
||||||
return (DW_DLE_NONE);
|
return (DW_DLE_NONE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user