From 8fafdcffba7288cafd4807e85e5e534aabea1d8c Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Fri, 16 May 2008 03:54:08 +0000 Subject: [PATCH] Drop unused local variable scriptlen and strlen call in execute_cgi (cherry picked from commit e174b9b023f055e4697c6e2d7c506e82566f377f) --- src/protocol/file/cgi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/protocol/file/cgi.c b/src/protocol/file/cgi.c index c22e23803..d7051784a 100644 --- a/src/protocol/file/cgi.c +++ b/src/protocol/file/cgi.c @@ -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)) {