From bb710ee6e460d022c98364c4ff0e1b3ed5398d9b Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Thu, 15 Aug 2019 08:10:55 +0900 Subject: [PATCH] Initialize pointer member of LibaryNamespaces Explicitly initialize the pointer member `app_main_namespace_` of the class LibraryNamespaces. Test: atest libnativeloader_tests Change-Id: I3932e7fb3c4074a127fcdbdedbd9c88652a7e36c --- libnativeloader/library_namespaces.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnativeloader/library_namespaces.h b/libnativeloader/library_namespaces.h index 84cabde69..7b3efff4d 100644 --- a/libnativeloader/library_namespaces.h +++ b/libnativeloader/library_namespaces.h @@ -38,7 +38,7 @@ using android::base::Result; // object for a given ClassLoader. class LibraryNamespaces { public: - LibraryNamespaces() : initialized_(false) {} + LibraryNamespaces() : initialized_(false), app_main_namespace_(nullptr) {} LibraryNamespaces(LibraryNamespaces&&) = default; LibraryNamespaces(const LibraryNamespaces&) = delete;