httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1143193 - in /httpd/httpd/trunk/modules: arch/win32/mod_isapi.c http/http_filters.c
Date Tue, 05 Jul 2011 20:24:33 GMT
Author: sf
Date: Tue Jul  5 20:24:33 2011
New Revision: 1143193

URL: http://svn.apache.org/viewvc?rev=1143193&view=rev
Log:
Fix a few warnings about use of uninitialized values.

Modified:
    httpd/httpd/trunk/modules/arch/win32/mod_isapi.c
    httpd/httpd/trunk/modules/http/http_filters.c

Modified: httpd/httpd/trunk/modules/arch/win32/mod_isapi.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/win32/mod_isapi.c?rev=1143193&r1=1143192&r2=1143193&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/win32/mod_isapi.c (original)
+++ httpd/httpd/trunk/modules/arch/win32/mod_isapi.c Tue Jul  5 20:24:33 2011
@@ -593,7 +593,7 @@ static int APR_THREAD_FUNC regfnReadClie
 {
     request_rec *r = cid->r;
     apr_uint32_t read = 0;
-    int res;
+    int res = 0;
 
     if (r->remaining < *buf_size) {
         *buf_size = (apr_size_t)r->remaining;
@@ -1184,7 +1184,7 @@ static int APR_THREAD_FUNC regfnServerSu
     case HSE_REQ_ASYNC_READ_CLIENT:
     {
         apr_uint32_t read = 0;
-        int res;
+        int res = 0;
         if (!cid->dconf.fake_async) {
             if (cid->dconf.log_unsupported)
                 ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r,

Modified: httpd/httpd/trunk/modules/http/http_filters.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_filters.c?rev=1143193&r1=1143192&r2=1143193&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_filters.c (original)
+++ httpd/httpd/trunk/modules/http/http_filters.c Tue Jul  5 20:24:33 2011
@@ -996,7 +996,7 @@ static void basic_http_header(request_re
 
 AP_DECLARE(void) ap_basic_http_header(request_rec *r, apr_bucket_brigade *bb)
 {
-    const char *protocol;
+    const char *protocol = NULL;
 
     basic_http_header_check(r, &protocol);
     basic_http_header(r, bb, protocol);
@@ -1138,7 +1138,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_
     request_rec *r = f->r;
     conn_rec *c = r->connection;
     const char *clheader;
-    const char *protocol;
+    const char *protocol = NULL;
     apr_bucket *e;
     apr_bucket_brigade *b2;
     header_struct h;



Mime
View raw message