| Index: base/debug/activity_tracker.cc
|
| diff --git a/base/debug/activity_tracker.cc b/base/debug/activity_tracker.cc
|
| index 09946eed7296a2088f152b30ab46b513ea6dcf05..40e9b9537ca9cdd739f6f2ee5826f1032f6aa7fa 100644
|
| --- a/base/debug/activity_tracker.cc
|
| +++ b/base/debug/activity_tracker.cc
|
| @@ -331,9 +331,11 @@ void ActivityUserData::Set(StringPiece name,
|
|
|
| // Truncate the stored size to the amount of available memory. Stop now if
|
| // there's not any room for even part of the value.
|
| - size = std::min(full_size - base_size, size);
|
| - if (size == 0)
|
| - return;
|
| + if (size != 0) {
|
| + size = std::min(full_size - base_size, size);
|
| + if (size == 0)
|
| + return;
|
| + }
|
|
|
| // Allocate a chunk of memory.
|
| Header* header = reinterpret_cast<Header*>(memory_);
|
|
|