Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 4dcc794bb33803ec09cff7dfe684d6cfbc6dba61..9d447ad65d8e0f9c684f9e259205ab69a0d08c84 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -405,7 +405,7 @@ void Shell::AddHistogramSample(void* histogram, int sample) { |
void Shell::Initialize() { |
Shell::counter_map_ = new CounterMap(); |
// Set up counters |
- if (i::FLAG_map_counters != NULL) |
+ if (i::StrLength(i::FLAG_map_counters) != 0) |
MapCounters(i::FLAG_map_counters); |
if (i::FLAG_dump_counters) { |
V8::SetCounterFunction(LookupCounter); |