| Index: base/metrics/stats_table.cc
|
| diff --git a/base/metrics/stats_table.cc b/base/metrics/stats_table.cc
|
| index 03158fdbd0a9199fc5d7f9586615df9fe992def0..0986395dd9841d87ddb1230715ffbc6adcf66227 100644
|
| --- a/base/metrics/stats_table.cc
|
| +++ b/base/metrics/stats_table.cc
|
| @@ -478,7 +478,9 @@ int* StatsTable::FindLocation(const char* name) {
|
| // Get the slot for this thread. Try to register
|
| // it if none exists.
|
| int slot = table->GetSlot();
|
| - if (!slot && !(slot = table->RegisterThread(std::string())))
|
| + if (!slot)
|
| + slot = table->RegisterThread(std::string());
|
| + if (!slot)
|
| return NULL;
|
|
|
| // Find the counter id for the counter.
|
|
|