summaryrefslogtreecommitdiff
path: root/base/trace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/trace.cc')
-rw-r--r--base/trace.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/trace.cc b/base/trace.cc
index bc6c9aa7a..c9d4a0f78 100644
--- a/base/trace.cc
+++ b/base/trace.cc
@@ -71,7 +71,7 @@ Log::init(int _size)
size = _size;
- buffer = new (Record *)[size];
+ buffer = new Record *[size];
for (int i = 0; i < size; ++i) {
buffer[i] = NULL;
@@ -98,6 +98,8 @@ Log::append(Record *rec)
// dump record to output stream if there's one open
if (dprintf_stream != NULL) {
rec->dump(*dprintf_stream);
+ } else {
+ rec->dump(cout);
}
// no buffering: justget rid of it now