diff options
Diffstat (limited to 'base/debug_util.cc')
-rw-r--r-- | base/debug_util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/debug_util.cc b/base/debug_util.cc index 2db3aa7..2a6cac2 100644 --- a/base/debug_util.cc +++ b/base/debug_util.cc @@ -19,8 +19,8 @@ bool DebugUtil::WaitForDebugger(int wait_seconds, bool silent) { } const void *const *StackTrace::Addresses(size_t* count) { - *count = trace_.size(); - if (trace_.size()) - return &trace_[0]; + *count = count_; + if (count_) + return trace_; return NULL; } |