diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 13:12:46 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 13:12:46 +0000 |
commit | 70d2e568fbaf89bfea019c69a837befa370b3217 (patch) | |
tree | e166c8292a73ca6e0860762d028db8a94afce11c /base/iat_patch.cc | |
parent | 94319a6a4ef12422756e40d2bf252356fa271ddd (diff) | |
download | chromium_src-70d2e568fbaf89bfea019c69a837befa370b3217.zip chromium_src-70d2e568fbaf89bfea019c69a837befa370b3217.tar.gz chromium_src-70d2e568fbaf89bfea019c69a837befa370b3217.tar.bz2 |
Initialize module_handle_ in IATPatch's constructor.
The uninitialized value wasn't used since it was guarded by other members, but it is still better to initialize the member explicitly.
Review URL: http://codereview.chromium.org/48130
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11959 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/iat_patch.cc')
-rw-r--r-- | base/iat_patch.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/iat_patch.cc b/base/iat_patch.cc index fb4a79a..e705713 100644 --- a/base/iat_patch.cc +++ b/base/iat_patch.cc @@ -169,7 +169,8 @@ DWORD ModifyCode(void* old_code, void* new_code, int length) { } IATPatchFunction::IATPatchFunction() - : original_function_(NULL), + : module_handle_(NULL), + original_function_(NULL), iat_thunk_(NULL), intercept_function_(NULL) { } |