aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/execable.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/execable.c b/libbb/execable.c
index cb56b9181..817c06736 100644
--- a/libbb/execable.c
+++ b/libbb/execable.c
@@ -27,7 +27,7 @@ char *find_execable(const char *filename)
{
char *path, *p, *n;
- p = path = xstrdup(getenv("PATH") ? : "");
+ p = path = xstrdup(getenv("PATH"));
while (p) {
n = strchr(p, ':');
if (n)
@@ -59,4 +59,3 @@ int exists_execable(const char *filename)
}
return 0;
}
-