Don't pass in empty arg to dex2oat.
We would occassionally pass in an empty arg "" instead of a NULL. This caused problems since dex2oat isn't made to handle empty args. Change-Id: Ibb1aed64a4aa17459b2a75a5a2abcf13c7fa8ac7
This commit is contained in:
parent
e19c99aad6
commit
f53dbfeda3
@ -623,7 +623,7 @@ static void run_dex2oat(int zip_fd, int oat_fd, const char* input_file_name,
|
|||||||
execl(DEX2OAT_BIN, DEX2OAT_BIN,
|
execl(DEX2OAT_BIN, DEX2OAT_BIN,
|
||||||
zip_fd_arg, zip_location_arg,
|
zip_fd_arg, zip_location_arg,
|
||||||
oat_fd_arg, oat_location_arg,
|
oat_fd_arg, oat_location_arg,
|
||||||
dex2oat_flags,
|
strlen(dex2oat_flags) > 0 ? dex2oat_flags : NULL,
|
||||||
(char*) NULL);
|
(char*) NULL);
|
||||||
ALOGE("execl(%s) failed: %s\n", DEX2OAT_BIN, strerror(errno));
|
ALOGE("execl(%s) failed: %s\n", DEX2OAT_BIN, strerror(errno));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user