[email protected] wrote:
> Author: jailletc36
> Date: Mon Sep  1 14:40:01 2014
> New Revision: 1621806
> 
> URL: http://svn.apache.org/r1621806
> Log:
> Silent some cppcheck warnings.
> 
> Modified:
>     httpd/httpd/trunk/modules/loggers/mod_journald.c
>     httpd/httpd/trunk/modules/mappers/mod_negotiation.c
>     httpd/httpd/trunk/modules/proxy/mod_proxy_wstunnel.c
>     httpd/httpd/trunk/server/util_expr_eval.c
> 

> Modified: httpd/httpd/trunk/modules/mappers/mod_negotiation.c
> URL: 
> http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_negotiation.c?rev=1621806&r1=1621805&r2=1621806&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/modules/mappers/mod_negotiation.c (original)
> +++ httpd/httpd/trunk/modules/mappers/mod_negotiation.c Mon Sep  1 14:40:01 
> 2014
> @@ -1707,7 +1707,7 @@ static void set_language_quality(negotia
>               * we are allowed to use the prefix of in HTTP/1.1
>               */
>              char *lang = ((char **) (variant->content_languages->elts))[j];
> -            int idx = -1;
> +            int idx;

What exactly is the issue with an initialized variable?

>  
>              /* If we wish to fallback or
>               * we use our own LanguagePriority index.
> 
> Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_wstunnel.c
> URL: 
> http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_wstunnel.c?rev=1621806&r1=1621805&r2=1621806&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/modules/proxy/mod_proxy_wstunnel.c (original)
> +++ httpd/httpd/trunk/modules/proxy/mod_proxy_wstunnel.c Mon Sep  1 14:40:01 
> 2014
> @@ -318,7 +318,7 @@ static int proxy_wstunnel_request(apr_po
>                                  apr_uri_t *uri,
>                                  char *url, char *server_portstr, char 
> *scheme)
>  {
> -    apr_status_t rv = APR_SUCCESS;
> +    apr_status_t rv;

What exactly is the issue with an initialized variable?

>      apr_pollset_t *pollset;
>      apr_pollfd_t pollfd;
>      conn_rec *c = r->connection;
> 

Regards

RĂ¼diger

Reply via email to