From d554f7c597286fb1acfad5818764b8f147909a59 Mon Sep 17 00:00:00 2001 From: Donald Chai Date: Wed, 10 Jul 2019 18:46:34 -0700 Subject: [PATCH] Fix uninitialized variable. "aapt2 optimize" without --enable-resource-path-shortening should not do resource-path-shortening. Bug: 75965637 Change-Id: Ibcbf325e66ed7992bf81184260abd63711b2af2a --- tools/aapt2/cmd/Optimize.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/aapt2/cmd/Optimize.h b/tools/aapt2/cmd/Optimize.h index 7f4a3ed85364b..0be7dad183803 100644 --- a/tools/aapt2/cmd/Optimize.h +++ b/tools/aapt2/cmd/Optimize.h @@ -57,7 +57,7 @@ struct OptimizeOptions { std::unordered_set kept_artifacts; // Whether or not to shorten resource paths in the APK. - bool shorten_resource_paths; + bool shorten_resource_paths = false; // Path to the output map of original resource paths to shortened paths. Maybe shortened_paths_map_path;