Fix VmExtractDebugTrace();
The build was successful. Details

If there is no information about class in the frame (when closure was called), pClassName should point always to NULL.
This commit is contained in:
Rafal Kupiec 2018-09-02 18:46:30 +02:00
parent 3e1d91e909
commit f89af70ab2
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 4 additions and 0 deletions

View File

@ -1787,7 +1787,11 @@ PH7_PRIVATE sxi32 VmExtractDebugTrace(ph7_vm *pVm, SySet *pDebugTrace, sxbool bA
pClass = PH7_VmExtractActiveClass(pVm, iDepth++);
if(pClass) {
aTrace.pClassName = &pClass->sName;
} else {
aTrace.pClassName = NULL;
}
} else {
aTrace.pClassName = NULL;
}
rc = SySetPut(pDebugTrace, (const void *)&aTrace);
if(rc != SXRET_OK) {