summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmds/installd/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c
index 4992872..f27eef8 100644
--- a/cmds/installd/commands.c
+++ b/cmds/installd/commands.c
@@ -421,7 +421,7 @@ int create_cache_path(char path[PKG_PATH_MAX], const char *src)
const char *cache_path = DALVIK_CACHE_PREFIX;
if (!strncmp(src, "/system", 7)) {
property_get("dalvik.vm.dexopt-data-only", dexopt_data_only, "");
- if (strcmp(dexopt_data_only, "1")) {
+ if (!strcmp(dexopt_data_only, "1")) {
cache_path = DALVIK_SYSTEM_CACHE_PREFIX;
}
}