diff options
author | mark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-06-20 18:20:48 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-06-20 18:20:48 +0000 |
commit | 56cf4aa3d95d990bcdfc391af6f206058047d6e9 (patch) | |
tree | bd2f24f0d26f5b52655c6aa46e2ebdebd99acb97 /src/common | |
parent | add interface for WriteMinidump which allows the caller to supply file handle... (diff) | |
download | breakpad-56cf4aa3d95d990bcdfc391af6f206058047d6e9.tar.xz |
Eliminate redundant initialization following r1188,
https://breakpad.appspot.com/599002
R=ivan.penkov@gmail.com
Review URL: https://breakpad.appspot.com/604002
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1192 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/memory.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/memory.h b/src/common/memory.h index 949bd8b6..8dc91520 100644 --- a/src/common/memory.h +++ b/src/common/memory.h @@ -99,8 +99,7 @@ class PageAllocator { // Checks whether the page allocator owns the passed-in pointer. // This method exists for testing pursposes only. bool OwnsPointer(const void* p) { - PageHeader* header = last_; - for (header = last_; header; header = header->next) { + for (PageHeader* header = last_; header; header = header->next) { const char* current = reinterpret_cast<char*>(header); if ((p >= current) && (p < current + header->num_pages * page_size_)) return true; |