diff options
-rw-r--r-- | chrome/browser/webdata/web_database.cc | 3 | ||||
-rw-r--r-- | chrome/browser/webdata/web_database.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/webdata/web_database.cc b/chrome/browser/webdata/web_database.cc index 6e4a3fb..eea663c 100644 --- a/chrome/browser/webdata/web_database.cc +++ b/chrome/browser/webdata/web_database.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -1202,6 +1202,7 @@ bool WebDatabase::GetIDAndCountOfFormElement( s.BindString16(0, element.name()); s.BindString16(1, element.value()); + *pair_id = 0; *count = 0; if (s.Step()) { diff --git a/chrome/browser/webdata/web_database.h b/chrome/browser/webdata/web_database.h index 17bc19c..0356381 100644 --- a/chrome/browser/webdata/web_database.h +++ b/chrome/browser/webdata/web_database.h @@ -183,7 +183,8 @@ class WebDatabase { bool AddToCountOfFormElement(int64 pair_id, int delta, bool* was_removed); // Gets the pair_id and count entries from name and value specified in - // |element|. Sets *count to 0 if there is no such row in the table. + // |element|. Sets *pair_id and *count to 0 if there is no such row in + // the table. bool GetIDAndCountOfFormElement(const webkit_glue::FormField& element, int64* pair_id, int* count); |