From 642b344069fb70875e657b66e1b815cdf1427914 Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Sun, 18 Jan 2015 18:57:53 +0000 Subject: [PATCH] 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 --- modules/aaa/mod_authnz_fcgi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/aaa/mod_authnz_fcgi.c b/modules/aaa/mod_authnz_fcgi.c index 070e609470..7c908f7cb8 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, -- 2.40.0