diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 22:20:25 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-25 22:20:25 +0000 |
commit | f80131d42832cf64032bbb855c6bda0f7ea3bc73 (patch) | |
tree | 50d14dac403e92618f348e2c9fb59a0abcbfb52e /sandbox | |
parent | 1c2e0c4340d1fabdc5a9c1479198019e6698ea10 (diff) | |
download | chromium_src-f80131d42832cf64032bbb855c6bda0f7ea3bc73.zip chromium_src-f80131d42832cf64032bbb855c6bda0f7ea3bc73.tar.gz chromium_src-f80131d42832cf64032bbb855c6bda0f7ea3bc73.tar.bz2 |
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
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/linux/seccomp-bpf/sandbox_bpf.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sandbox/linux/seccomp-bpf/sandbox_bpf.h b/sandbox/linux/seccomp-bpf/sandbox_bpf.h index d97aeaf..3696668 100644 --- a/sandbox/linux/seccomp-bpf/sandbox_bpf.h +++ b/sandbox/linux/seccomp-bpf/sandbox_bpf.h @@ -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; |