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
This commit is contained in:
parent
a04952a5fa
commit
e174b9b023
@ -306,7 +306,6 @@ execute_cgi(struct connection *conn)
|
|||||||
{
|
{
|
||||||
unsigned char *last_slash;
|
unsigned char *last_slash;
|
||||||
unsigned char *script;
|
unsigned char *script;
|
||||||
int scriptlen;
|
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
enum connection_state state = S_OK;
|
enum connection_state state = S_OK;
|
||||||
@ -325,7 +324,6 @@ execute_cgi(struct connection *conn)
|
|||||||
goto end2;
|
goto end2;
|
||||||
}
|
}
|
||||||
decode_uri(script);
|
decode_uri(script);
|
||||||
scriptlen = strlen(script);
|
|
||||||
|
|
||||||
if (stat(script, &buf) || !(S_ISREG(buf.st_mode))
|
if (stat(script, &buf) || !(S_ISREG(buf.st_mode))
|
||||||
|| !(buf.st_mode & S_IXUSR)) {
|
|| !(buf.st_mode & S_IXUSR)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user