Fix copy pasta.

This commit is contained in:
Bartosz Taudul 2020-02-27 14:08:56 +01:00
parent 4346620afa
commit 710a2a64e4

View File

@ -380,7 +380,7 @@ static int SymbolAddressDataCb( void* data, uintptr_t pc, const char* fn, int li
{
const char* symloc = nullptr;
Dl_info dlinfo;
if( dladdr( (void*)ptr, &dlinfo ) ) symloc = dlinfo.dli_fname;
if( dladdr( (void*)pc, &dlinfo ) ) symloc = dlinfo.dli_fname;
if( !symloc ) symloc = "[unknown]";
sym.file = symloc;
sym.line = 0;