Debugger: Fix crash when tracing without a file output
Vicki Pfau vi@endrift.com
Sat, 28 Nov 2020 20:43:43 -0800
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
src/debugger/cli-debugger.c
→
src/debugger/cli-debugger.c
@@ -753,8 +753,10 @@ if (debugger->traceRemaining > 0) {
--debugger->traceRemaining; } if (!debugger->traceRemaining) { - debugger->traceVf->close(debugger->traceVf); - debugger->traceVf = NULL; + if (debugger->traceVf) { + debugger->traceVf->close(debugger->traceVf); + debugger->traceVf = NULL; + } return false; } return true;