summaryrefslogtreecommitdiff
path: root/tools/bit/command.cpp
diff options
context:
space:
mode:
author Dan Willemsen <dwillemsen@google.com> 2017-10-18 06:00:51 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-10-18 06:00:51 +0000
commite994b4b584a23be4574b725f6b5e654535f8e1d0 (patch)
tree01f445dbd94b92bc7ef728a85765c8f8c3afc8c8 /tools/bit/command.cpp
parentd32138d78a0c2753c6473effc0657ff7cf2c0de9 (diff)
parenta40118d7b6f70f44eaf4a47a32808088fd039f71 (diff)
Merge "Use soong_ui directly, instead of make"
Diffstat (limited to 'tools/bit/command.cpp')
-rw-r--r--tools/bit/command.cpp2
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"));