summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1996-11-18 16:56:51 +0000
committerBruce Evans <bde@FreeBSD.org>1996-11-18 16:56:51 +0000
commit1ad652a54c103dbdd891e81ceedae09ade0c3f45 (patch)
tree491f69b54517d79509a8acfc7c10ecb0c616a0ff /lib/libc
parentf8b04ff4fcc3ad24707601da1d8e2aa8cad04f71 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/exec.c b/lib/libc/gen/exec.c
index b62ae63e6fd0..2410ce974492 100644
--- a/lib/libc/gen/exec.c
+++ b/lib/libc/gen/exec.c
@@ -190,6 +190,8 @@ execvp(name, argv)
int eacces, etxtbsy;
char *bp, *cur, *path, buf[MAXPATHLEN];
+ eacces = etxtbsy = 0;
+
/* If it's an absolute or relative path name, it's easy. */
if (index(name, '/')) {
bp = (char *)name;
@@ -203,7 +205,6 @@ execvp(name, argv)
path = _PATH_DEFPATH;
cur = path = strdup(path);
- eacces = etxtbsy = 0;
while ( (p = strsep(&cur, ":")) ) {
/*
* It's a SHELL path -- double, leading and trailing colons