diff options
-rw-r--r-- | 101run_sandboxed.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/101run_sandboxed.cc b/101run_sandboxed.cc index 4a897d3a..e196081f 100644 --- a/101run_sandboxed.cc +++ b/101run_sandboxed.cc @@ -163,7 +163,8 @@ void run_code_begin(bool should_stash_snapshots) { Save_callstack_depth = Callstack_depth; Callstack_depth = Initial_callstack_depth; Trace_stream = new trace_stream; - Trace_stream->collect_depth = Save_trace_stream->collect_depth; + if (Save_trace_stream) + Trace_stream->collect_depth = Save_trace_stream->collect_depth; } void run_code_end() { |