libmach: initialize ss variable in stabsline2pc function

Fixes #58.
This commit is contained in:
David du Colombier 2017-09-01 22:37:05 +02:00
parent 2f9bf88b36
commit cf303e5baa

View file

@ -309,7 +309,8 @@ stabsline2pc(Fhdr *fhdr, u64int startpc, ulong line, u64int *pc)
l.type = LADDR;
l.addr = startpc;
if((s = ffindsym(fhdr, l, CTEXT)) == nil)
if((s = ffindsym(fhdr, l, CTEXT)) == nil
|| stabsym(&fhdr->stabs, s->u.stabs.i, &ss) < 0)
return -1;
trigger = 0;