Fix the return value when we found a symbol in .dynstr. This nasty bug was

preventing a lot of symbol lookups in dtruss -s, for example.
This commit is contained in:
Rui Paulo 2013-08-10 07:39:15 +00:00
parent cfde4db254
commit 7bc9877d20

View File

@ -299,6 +299,7 @@ proc_addr2sym(struct proc_handle *p, uintptr_t addr, char *name,
* the function.
*/
symcopy->st_value = rsym;
error = 0;
goto out;
}
}