From 17d2895c4469454da701c10c2634c2efb827e38a Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Mon, 31 Aug 2009 00:22:44 +0000 Subject: [PATCH] moved "finfo.mtime = 0;" after var declaration; removed tab. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@809440 13f79535-47bb-0310-9956-ffa450edef68 --- modules/cache/cache_util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index 81ce371d28..9b8b1e4075 100644 --- a/modules/cache/cache_util.c +++ b/modules/cache/cache_util.c @@ -193,10 +193,11 @@ CACHE_DECLARE(apr_status_t) ap_cache_try_lock(cache_server_conf *conf, char dir[5]; apr_time_t now = apr_time_now(); apr_finfo_t finfo; - finfo.mtime = 0; apr_file_t *lockfile; void *dummy; + finfo.mtime = 0; + if (!conf || !conf->lock || !conf->lockpath) { /* no locks configured, leave */ return APR_SUCCESS; @@ -205,7 +206,7 @@ CACHE_DECLARE(apr_status_t) ap_cache_try_lock(cache_server_conf *conf, /* lock already obtained earlier? if so, success */ apr_pool_userdata_get(&dummy, CACHE_LOCKFILE_KEY, r->pool); if (dummy) { - return APR_SUCCESS; + return APR_SUCCESS; } /* create the key if it doesn't exist */ -- 2.50.1