--- thttpd/libhttpd.c 2001/07/02 18:50:02 1.1.4.4 +++ thttpd/libhttpd.c 2001/07/02 18:52:37 1.1.4.5 @@ -827,11 +827,13 @@ { char *protocol = hc->protocol; - hc->protocol = "HTTP/1.0"; #ifdef ERR_DIR - char filename[1000]; +#endif + hc->protocol = "HTTP/1.0"; + +#ifdef ERR_DIR /* Try virtual host error page. */ if ( hc->hs->vhost && hc->hostdir[0] != '\0' ) {