← Commit list

12f5676cc

Denis Vlasenko
Denis Vlasenko
2006-10-12
FAILED Duration: 3s

Subject

execable: no need to check getenv for NULL, it works anyway.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/execable.c+1 -2
@@ -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;
}
-