diff options
| author | 2017-10-18 06:10:06 +0000 | |
|---|---|---|
| committer | 2017-10-18 06:10:06 +0000 | |
| commit | 0531e5c6474265698841f07d40f2e84f5f13d547 (patch) | |
| tree | ebec742dff5c2f0e2d1037c390a1fb8fc4e12d00 /tools/bit/command.cpp | |
| parent | a0df3496d33ed6ead766d99f68587379856bd8e9 (diff) | |
| parent | e994b4b584a23be4574b725f6b5e654535f8e1d0 (diff) | |
Merge "Use soong_ui directly, instead of make"
am: e994b4b584
Change-Id: I406a02af2d5fd1accf5c53609af00f416669e18f
Diffstat (limited to 'tools/bit/command.cpp')
| -rw-r--r-- | tools/bit/command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bit/command.cpp b/tools/bit/command.cpp index 1ff7c221b26e..f95ea117a96e 100644 --- a/tools/bit/command.cpp +++ b/tools/bit/command.cpp @@ -189,7 +189,7 @@ run_command(const Command& command) int exec_with_path_search(const char* prog, char const* const* argv, char const* const* envp) { - if (prog[0] == '/') { + if (strchr(prog, '/') != NULL) { return execve(prog, (char*const*)argv, (char*const*)envp); } else { char* pathEnv = strdup(getenv("PATH")); |