summaryrefslogtreecommitdiffstats
path: root/base/iat_patch.cc
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 13:12:46 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 13:12:46 +0000
commit70d2e568fbaf89bfea019c69a837befa370b3217 (patch)
treee166c8292a73ca6e0860762d028db8a94afce11c /base/iat_patch.cc
parent94319a6a4ef12422756e40d2bf252356fa271ddd (diff)
downloadchromium_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.cc3
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) {
}