summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/wordexp.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-04-09 11:32:32 +0000
committertjr <tjr@FreeBSD.org>2004-04-09 11:32:32 +0000
commitf2bb7f8613d48d09af13db6c5aaa0e98dbed48e1 (patch)
treeff47fa59956f853aced5a72f94e05241de91b7bd /lib/libc/gen/wordexp.c
parent9e9fb7be4dadb385bbc975d38ded49df37044bd9 (diff)
downloadFreeBSD-src-f2bb7f8613d48d09af13db6c5aaa0e98dbed48e1.zip
FreeBSD-src-f2bb7f8613d48d09af13db6c5aaa0e98dbed48e1.tar.gz
Terminate execl()'s argument list with a null pointer instead of a
null pointer constant. (The latter may be an integer constant, which is not correct here.) Submitted by: Stefan Farfeleder
Diffstat (limited to 'lib/libc/gen/wordexp.c')
-rw-r--r--lib/libc/gen/wordexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/wordexp.c b/lib/libc/gen/wordexp.c
index 9bdb121..46ccb2f 100644
--- a/lib/libc/gen/wordexp.c
+++ b/lib/libc/gen/wordexp.c
@@ -128,7 +128,7 @@ we_askshell(const char *words, wordexp_t *we, int flags)
_close(devnull);
}
execl(_PATH_BSHELL, "sh", flags & WRDE_UNDEF ? "-u" : "+u",
- "-c", cmd, NULL);
+ "-c", cmd, (char *)NULL);
_exit(1);
}
OpenPOWER on IntegriCloud