Commit f80131d4 authored by jhawkins@chromium.org's avatar jhawkins@chromium.org

Coverity: Initialize member variables.

CID_COUNT=6
CID=103934,104157,[104037,104088,104089,104091],104223,104241,104263
BUG=none
TEST=none
R=tbreisacher
TBR=brettw

Review URL: https://chromiumcodereview.appspot.com/10830013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148432 0039d316-1c4b-4281-b951-d872f2087c98
parent 1c2e0c43
......@@ -48,6 +48,7 @@
#endif
#if defined(OS_WIN)
#include <cstring>
#include <atlbase.h>
#include <atlapp.h>
#include <malloc.h>
......@@ -398,6 +399,9 @@ class ContentMainRunnerImpl : public ContentMainRunner {
is_shutdown_(false),
completed_basic_startup_(false),
delegate_(NULL) {
#if defined(OS_WIN)
memset(&sandbox_info_, 0, sizeof(sandbox_info_));
#endif
}
~ContentMainRunnerImpl() {
......
......@@ -44,7 +44,8 @@ RenderWidgetHostViewBase::RenderWidgetHostViewBase()
mouse_locked_(false),
showing_context_menu_(false),
selection_text_offset_(0),
selection_range_(ui::Range::InvalidRange()) {
selection_range_(ui::Range::InvalidRange()),
current_device_scale_factor_(0) {
}
RenderWidgetHostViewBase::~RenderWidgetHostViewBase() {
......
......@@ -4,6 +4,8 @@
#include "media/video/capture/win/sink_input_pin_win.h"
#include <cstring>
// Avoid including strsafe.h via dshow as it will cause build warnings.
#define NO_DSHOW_STRSAFE
#include <dshow.h>
......@@ -18,6 +20,8 @@ SinkInputPin::SinkInputPin(IBaseFilter* filter,
SinkFilterObserver* observer)
: observer_(observer),
PinBase(filter) {
memset(&requested_capability_, 0, sizeof(requested_capability_));
memset(&resulting_capability_, 0, sizeof(resulting_capability_));
}
SinkInputPin::~SinkInputPin() {}
......
......@@ -176,7 +176,10 @@ class Sandbox {
// field.
// This is not only quiet efficient, it also makes the API really easy to
// use.
ErrorCode(int err = SB_INVALID) {
ErrorCode(int err = SB_INVALID)
: id_(0),
fnc_(NULL),
aux_(NULL) {
switch (err) {
case SB_INVALID:
err_ = SECCOMP_RET_INVALID;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment