1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-02 03:46:21 -04:00

cgi: Ensure correct type of NULL pointer to variadic execl.

[ Backported from commit 4c636d74f1
  in ELinks 0.12.GIT.  --KON ]
This commit is contained in:
Kalle Olavi Niemitalo 2007-03-10 13:19:31 +02:00 committed by Kalle Olavi Niemitalo
parent 4a624fceb8
commit 8d9837a015

View File

@ -347,7 +347,7 @@ execute_cgi(struct connection *conn)
close_all_non_term_fd();
last_slash[-1] = 0; set_cwd(script); last_slash[-1] = '/';
if (execl(script, script, NULL)) {
if (execl(script, script, (char *) NULL)) {
_exit(3);
}