]> granicus.if.org Git - apache/commitdiff
Fix a few warnings about use of uninitialized values.
authorStefan Fritsch <sf@apache.org>
Tue, 5 Jul 2011 20:24:33 +0000 (20:24 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 5 Jul 2011 20:24:33 +0000 (20:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1143193 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/win32/mod_isapi.c
modules/http/http_filters.c

index 41604ae7864e38bdb5484ac5f6a3a83101582e1b..682bd6411d0c24623ef2e48e476393370dde2608 100644 (file)
@@ -593,7 +593,7 @@ static int APR_THREAD_FUNC regfnReadClient(isapi_cid    *cid,
 {
     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 regfnServerSupportFunction(isapi_cid    *cid,
     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,
index a42a3bb16d892d727c9bdd32698de5f2ef151209..fa832fa1cfd7dd3377126ce238b64e8162952010 100644 (file)
@@ -996,7 +996,7 @@ static void basic_http_header(request_rec *r, apr_bucket_brigade *bb,
 
 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_http_header_filter(ap_filter_t *f,
     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;