From: Denis Vlasenko Date: Thu, 12 Oct 2006 06:15:13 +0000 (-0000) Subject: execable: no need to check getenv for NULL, it works anyway. X-Git-Tag: 1_4_0~519 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12f5676cce3b2e04668df3f18f94f1a3c7fdbb9e;p=platform%2Fupstream%2Fbusybox.git execable: no need to check getenv for NULL, it works anyway. --- 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; } -