From: Rainer Jung Date: Sun, 18 Jan 2015 18:57:53 +0000 (+0000) Subject: Silence compiler warnings: X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65319ced07edc43eade89ad0725b55dc8301db0c;p=thirdparty%2Fapache%2Fhttpd.git Silence compiler warnings: - modules/aaa/mod_authnz_fcgi.c:705: warning: 'orspbuflen' may be used uninitialized in this function - modules/aaa/mod_authnz_fcgi.c:1235: warning: comparison is always false due to limited range of data type git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1652829 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_authnz_fcgi.c b/modules/aaa/mod_authnz_fcgi.c index 070e6094705..7c908f7cb8e 100644 --- a/modules/aaa/mod_authnz_fcgi.c +++ b/modules/aaa/mod_authnz_fcgi.c @@ -701,7 +701,7 @@ static void req_rsp(request_rec *r, const fcgi_provider_conf *conf, { const char *fn = "req_rsp"; apr_pool_t *temp_pool; - apr_size_t orspbuflen; + apr_size_t orspbuflen = 0; apr_socket_t *s; apr_status_t rv; apr_table_t *saved_subprocess_env = @@ -1167,7 +1167,7 @@ static const char *fcgi_define_provider(cmd_parms *cmd, char *host; const char *err, *stype; fcgi_provider_conf *conf = apr_pcalloc(cmd->pool, sizeof(*conf)); - int ca = 0, rc; + int ca = 0, rc, port; fcgi_backend_regex = ap_rxplus_compile(cmd->pool, FCGI_BACKEND_REGEX_STR); if (!fcgi_backend_regex) { @@ -1230,8 +1230,8 @@ static const char *fcgi_define_provider(cmd_parms *cmd, host[strlen(host) - 1] = '\0'; } - conf->port = atoi(ap_rxplus_pmatch(cmd->pool, fcgi_backend_regex, 2)); - if (conf->port > 65535) { + port = atoi(ap_rxplus_pmatch(cmd->pool, fcgi_backend_regex, 2)); + if (port > 65535) { return apr_pstrcat(cmd->pool, dname, ": backend-address '", argv[ca], @@ -1241,6 +1241,7 @@ static const char *fcgi_define_provider(cmd_parms *cmd, conf->backend = argv[ca]; conf->host = host; + conf->port = port; ca++; rv = apr_sockaddr_info_get(&conf->backend_addrs, conf->host,