diff options
author | Denis Vlasenko | 2006-10-12 06:15:13 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-12 06:15:13 +0000 |
commit | 12f5676cce3b2e04668df3f18f94f1a3c7fdbb9e (patch) | |
tree | 2613b810048f9d978159d7704254a84b742b5940 | |
parent | 5cb46485dd5c752b6db9ad54b6a5621a7bcf14e0 (diff) | |
download | busybox-12f5676cce3b2e04668df3f18f94f1a3c7fdbb9e.zip busybox-12f5676cce3b2e04668df3f18f94f1a3c7fdbb9e.tar.gz |
execable: no need to check getenv for NULL, it works anyway.
-rw-r--r-- | libbb/execable.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libbb/execable.c b/libbb/execable.c index cb56b91..817c067 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; } - |