From e174b9b023f055e4697c6e2d7c506e82566f377f 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 --- 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 4a0c8daa2..8a838550b 100644 --- a/src/protocol/file/cgi.c +++ b/src/protocol/file/cgi.c @@ -306,7 +306,6 @@ execute_cgi(struct connection *conn) { unsigned char *last_slash; unsigned char *script; - int scriptlen; struct stat buf; pid_t pid; enum connection_state state = S_OK; @@ -325,7 +324,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)) {