From 3988ab97cc194a4642d0cfa11852dedff6e5ef96 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 10 Dec 2006 17:16:38 +0200 Subject: [PATCH] about_protocol_handler: Don't define len if CONFIG_SMALL. It is not used if CONFIG_SMALL is defined, and GCC complained about this. With -Werror added by --enable-debug, the whole build failed. --- src/protocol/about.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/protocol/about.c b/src/protocol/about.c index 1cefec20a..b3ca27a78 100644 --- a/src/protocol/about.c +++ b/src/protocol/about.c @@ -94,13 +94,12 @@ about_protocol_handler(struct connection *conn) /* Only do this the first time */ if (cached && !cached->content_type) { - int len = 0; - #ifndef CONFIG_SMALL { const struct about_page *page = about_pages; for (; page->name; page++) { + int len; unsigned char *str; if (strcmp(conn->uri->data, page->name))