mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Drop unused local variable scriptlen and strlen call in execute_cgi
(cherry picked from commit e174b9b023
)
This commit is contained in:
parent
0f3d0d413d
commit
8fafdcffba
@ -308,7 +308,6 @@ execute_cgi(struct connection *conn)
|
||||
{
|
||||
unsigned char *last_slash;
|
||||
unsigned char *script;
|
||||
int scriptlen;
|
||||
struct stat buf;
|
||||
pid_t pid;
|
||||
struct connection_state state = connection_state(S_OK);
|
||||
@ -327,7 +326,6 @@ execute_cgi(struct connection *conn)
|
||||
goto end2;
|
||||
}
|
||||
decode_uri(script);
|
||||
scriptlen = strlen(script);
|
||||
|
||||
if (stat(script, &buf) || !(S_ISREG(buf.st_mode))
|
||||
|| !(buf.st_mode & S_IXUSR)) {
|
||||
|
Loading…
Reference in New Issue
Block a user