diff options
Diffstat (limited to 'net/disk_cache/trace.cc')
-rw-r--r-- | net/disk_cache/trace.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/disk_cache/trace.cc b/net/disk_cache/trace.cc index 94d9fad..7a61e20 100644 --- a/net/disk_cache/trace.cc +++ b/net/disk_cache/trace.cc @@ -70,14 +70,15 @@ void InitTrace(void) { } void DestroyTrace(void) { - DCHECK(s_trace_buffer); delete s_trace_buffer; s_trace_buffer = NULL; s_trace_object = NULL; } void Trace(const char* format, ...) { - DCHECK(s_trace_buffer); + if (!s_trace_buffer) + return; + va_list ap; va_start(ap, format); |