From 064a1c0aca0b76843ae767421d70d2791f50335b Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 14 Mar 2015 19:34:17 -0700 Subject: 918 --- cpp/002trace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/002trace b/cpp/002trace index e3ebd17e..796ad7f1 100644 --- a/cpp/002trace +++ b/cpp/002trace @@ -182,7 +182,7 @@ ostream& operator<<(ostream& os, unused die) { #define CLEAR_TRACE delete Trace_stream, Trace_stream = new trace_stream; -#define DUMP(layer) cerr << Trace_stream->readable_contents(layer) +#define DUMP(layer) if (Trace_stream) cerr << Trace_stream->readable_contents(layer); // Trace_stream is a resource, lease_tracer uses RAII to manage it. string Trace_file; -- cgit 1.4.1-2-gfad0