projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb4648
)
execable: no need to check getenv for NULL, it works anyway.
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 12 Oct 2006 06:15:13 +0000
(06:15 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 12 Oct 2006 06:15:13 +0000
(06:15 -0000)
libbb/execable.c
patch
|
blob
|
history
diff --git
a/libbb/execable.c
b/libbb/execable.c
index cb56b91816513d2dd289a1ae0801d1405dfc70dd..817c067369adfcfdd1f7b6ff413f765c9f629819 100644
(file)
--- 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;
}
-