diff options
author | Ian Rogers <irogers@google.com> | 2013-02-07 10:49:16 -0800 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-05-10 08:17:16 -0700 |
commit | 620bd0d151abcc1bd45d176878ca3e2a12de0ae0 (patch) | |
tree | 1450005e0c1107ec2b9a694cc359bf8548339032 | |
parent | d9f9db273afab35baee1db4d22a65ae819e72b74 (diff) | |
download | libcore-620bd0d151abcc1bd45d176878ca3e2a12de0ae0.zip libcore-620bd0d151abcc1bd45d176878ca3e2a12de0ae0.tar.gz libcore-620bd0d151abcc1bd45d176878ca3e2a12de0ae0.tar.bz2 |
Ensure array_ is initialized.
Always read in destructor.
(cherry picked from commit 5c4fb07217923c70b368b058f5337e4d9217cc1f)
Change-Id: I6ac68373750c3c864e9e401fa85f6336e93df435
-rw-r--r-- | luni/src/main/native/ExecStrings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/main/native/ExecStrings.cpp b/luni/src/main/native/ExecStrings.cpp index aec84fe..a6a62e2 100644 --- a/luni/src/main/native/ExecStrings.cpp +++ b/luni/src/main/native/ExecStrings.cpp @@ -24,7 +24,7 @@ #include "ScopedLocalRef.h" ExecStrings::ExecStrings(JNIEnv* env, jobjectArray java_string_array) - : env_(env), java_array_(java_string_array) { + : env_(env), java_array_(java_string_array), array_(NULL) { if (java_array_ == NULL) { return; } |