Remove path argument from cmd_execute()

It is always equal to argv[0] (or not used on Windows).
This commit is contained in:
Romain Vimont
2019-11-27 13:41:47 +01:00
parent 8dc11a0286
commit 73e8ec1b35
4 changed files with 5 additions and 6 deletions

View File

@@ -91,7 +91,7 @@ adb_execute(const char *serial, const char *const adb_cmd[], size_t len) {
memcpy(&cmd[i], adb_cmd, len * sizeof(const char *));
cmd[len + i] = NULL;
enum process_result r = cmd_execute(cmd[0], cmd, &process);
enum process_result r = cmd_execute(cmd, &process);
if (r != PROCESS_SUCCESS) {
show_adb_err_msg(r, cmd);
return PROCESS_NONE;