Fix the bugs I introduced fixing the bug earlier tonight.
This commit is contained in:
parent
ae12b87972
commit
eaf56db5bc
4 changed files with 11 additions and 6 deletions
|
|
@ -113,6 +113,7 @@ findabbrev(DwarfAbbrev *a, int na, ulong num)
|
|||
for(i=0; i<na; i++)
|
||||
if(a[i].num == num)
|
||||
return &a[i];
|
||||
werrstr("abbrev not found");
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
@ -122,8 +123,10 @@ dwarfgetabbrev(Dwarf *d, ulong off, ulong num)
|
|||
DwarfAbbrev *a;
|
||||
int na;
|
||||
|
||||
if((na = loadabbrevs(d, off, &a)) < 0)
|
||||
if((na = loadabbrevs(d, off, &a)) < 0){
|
||||
werrstr("loadabbrevs: %r");
|
||||
return nil;
|
||||
}
|
||||
return findabbrev(a, na, num);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue