aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-12 06:15:13 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-12 06:15:13 +0000
commit12f5676cce3b2e04668df3f18f94f1a3c7fdbb9e (patch)
tree2613b810048f9d978159d7704254a84b742b5940
parent5cb46485dd5c752b6db9ad54b6a5621a7bcf14e0 (diff)
downloadbusybox-12f5676cce3b2e04668df3f18f94f1a3c7fdbb9e.tar.gz
execable: no need to check getenv for NULL, it works anyway.
-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;
}
-