]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
the compiler warns about possibly uninitialized values. He may be right.
authorAndré Malo <nd@apache.org>
Sun, 10 Oct 2004 15:29:15 +0000 (15:29 +0000)
committerAndré Malo <nd@apache.org>
Sun, 10 Oct 2004 15:29:15 +0000 (15:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105398 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_cache.c

index 45928d68f9a4ee4f664f5a1c96c7c9c6531e1b80..210beb2cf97df4f8ae5909ce83ecf2412e3d3b18 100644 (file)
@@ -249,7 +249,7 @@ static int cache_out_filter(ap_filter_t *f, apr_bucket_brigade *bb)
 
 static int cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
 {
-    int rv;
+    int rv = !OK;
     int date_in_errhdr = 0;
     request_rec *r = f->r;
     cache_request_rec *cache;
@@ -259,7 +259,7 @@ static int cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
     const char *exps, *lastmods, *dates, *etag;
     apr_time_t exp, date, lastmod, now;
     apr_off_t size;
-    cache_info *info;
+    cache_info *info = NULL;
     char *reason;
     apr_pool_t *p;