diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-03 21:00:02 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-03 21:00:02 +0000 |
commit | 61076179916109d927541bd93cf888a7f858f645 (patch) | |
tree | a69b6fbff25bf30950be14a877900d0bc78ec679 /skia/ext/google_logging.cc | |
parent | ee0c66a87aeb76b5abc53278fabeb1403c860f46 (diff) | |
download | chromium_src-61076179916109d927541bd93cf888a7f858f645.zip chromium_src-61076179916109d927541bd93cf888a7f858f645.tar.gz chromium_src-61076179916109d927541bd93cf888a7f858f645.tar.bz2 |
Fix Coverity defects in skia/ext:
- Three uninit ctors, two dead codes, and a misuse of var args.
CID=100083, 101537, 17746, 9369, 9279, 9278
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8965060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/google_logging.cc')
-rw-r--r-- | skia/ext/google_logging.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/skia/ext/google_logging.cc b/skia/ext/google_logging.cc index b9d8b3a..5e8ffe1 100644 --- a/skia/ext/google_logging.cc +++ b/skia/ext/google_logging.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -17,6 +17,7 @@ void SkDebugf_FileLine(const char* file, int line, bool fatal, std::string msg; base::StringAppendV(&msg, format, ap); + va_end(ap); logging::LogMessage(file, line, fatal ? logging::LOG_FATAL : logging::LOG_INFO).stream() |