summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-04 14:17:14 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-10-04 14:17:19 +0200
commitdea7e0275b4bb7604ed7d79c8f6f8f91804de8a6 (patch)
treeae5ebf8c056f73fefd682e44d30c37067a77b736
parent46c0115361b8e63a74814b90b165e5fcb2ce284d (diff)
downloaduhttpd-dea7e0275b4bb7604ed7d79c8f6f8f91804de8a6.tar.gz
add an ifdef around a potentially unused variable
-rw-r--r--uhttpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uhttpd.c b/uhttpd.c
index 1efcbf0..f6d6756 100644
--- a/uhttpd.c
+++ b/uhttpd.c
@@ -429,7 +429,9 @@ static int uh_path_match(const char *prefix, const char *url)
static bool uh_dispatch_request(struct client *cl, struct http_request *req)
{
struct path_info *pin;
+#ifdef HAVE_CGI
struct interpreter *ipr = NULL;
+#endif
struct config *conf = cl->server->conf;
#ifdef HAVE_LUA