| Index: src/log-utils.cc
|
| diff --git a/src/log-utils.cc b/src/log-utils.cc
|
| index 722e0fc042ab4ed52b7b6af20507d2dbafaac90e..62f0ca62f41300ac71073034a2291f71738e87ed 100644
|
| --- a/src/log-utils.cc
|
| +++ b/src/log-utils.cc
|
| @@ -196,6 +196,9 @@ int Log::GetLogLines(int from_pos, char* dest_buf, int max_size) {
|
| char* end_pos = dest_buf + actual_size - 1;
|
| while (end_pos >= dest_buf && *end_pos != '\n') --end_pos;
|
| actual_size = static_cast<int>(end_pos - dest_buf + 1);
|
| + // If the assertion below is hit, it means that there was no line end
|
| + // found --- something wrong has happened.
|
| + ASSERT(actual_size > 0);
|
| ASSERT(actual_size <= max_size);
|
| return actual_size;
|
| }
|
|
|