summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-24 13:12:43 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-24 13:12:43 +0000
commitcfb8a7fc70c2bac20257737c9504a10803d1df46 (patch)
tree73ec780fe568c5447bac9dee1f5df3b7118a9edd /base
parent3ea428de78da86b78ea3fd0fb844d9bdc72bb702 (diff)
downloadchromium_src-cfb8a7fc70c2bac20257737c9504a10803d1df46.zip
chromium_src-cfb8a7fc70c2bac20257737c9504a10803d1df46.tar.gz
chromium_src-cfb8a7fc70c2bac20257737c9504a10803d1df46.tar.bz2
Coverity 8629, 3808: Uninitialized member in StringTokenizer.
BUG=None TEST=None Review URL: http://codereview.chromium.org/3036010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/string_tokenizer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/base/string_tokenizer.h b/base/string_tokenizer.h
index 3b8f8c3..cf2dacf 100644
--- a/base/string_tokenizer.h
+++ b/base/string_tokenizer.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -160,6 +160,7 @@ class StringTokenizerT {
end_ = string_end;
delims_ = delims;
options_ = 0;
+ token_is_delim_ = false;
}
// Implementation of GetNext() for when we have no quote characters. We have
@@ -174,7 +175,7 @@ class StringTokenizerT {
++token_end_;
if (delims_.find(*token_begin_) == str::npos)
break;
- // else skip over delim
+ // else skip over delimiter.
}
while (token_end_ != end_ && delims_.find(*token_end_) == str::npos)
++token_end_;
@@ -196,7 +197,7 @@ class StringTokenizerT {
token_is_delim_ = true;
return true;
}
- // else skip over delim
+ // else skip over delimiter.
}
while (token_end_ != end_ && AdvanceOne(&state, *token_end_))
++token_end_;