Fix VmExtractDebugTrace();
All checks were successful
The build was successful.

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:
2018-09-02 18:46:30 +02:00
parent 3e1d91e909
commit f89af70ab2

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) {