diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-16 18:05:45 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-16 18:05:45 +0000 |
commit | f377cebc8bb25bb9f6708adbfda567a95c296642 (patch) | |
tree | 5f31bd750cdc60e02fb5beb4c336f4e1f69a9c65 /chrome/browser | |
parent | 4350ec4198983c0075cab9487d16824c753ba66a (diff) | |
download | chromium_src-f377cebc8bb25bb9f6708adbfda567a95c296642.zip chromium_src-f377cebc8bb25bb9f6708adbfda567a95c296642.tar.gz chromium_src-f377cebc8bb25bb9f6708adbfda567a95c296642.tar.bz2 |
Return without doing anything instead of dereferencing junk in unexpected cases.
Review URL: http://codereview.chromium.org/7416
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3470 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_util.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_util.cc b/chrome/browser/safe_browsing/safe_browsing_util.cc index 23effa5..b7cf098 100644 --- a/chrome/browser/safe_browsing/safe_browsing_util.cc +++ b/chrome/browser/safe_browsing/safe_browsing_util.cc @@ -252,6 +252,7 @@ void SBEntry::RemovePrefix(int index) { break; default: NOTREACHED(); + return; } char* from = reinterpret_cast<char*>(to) + PrefixSize(type()); |