From: Guenter Knauf Date: Mon, 31 Aug 2009 00:22:44 +0000 (+0000) Subject: moved "finfo.mtime = 0;" after var declaration; X-Git-Tag: 2.3.3~350 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17d2895c4469454da701c10c2634c2efb827e38a;p=apache 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 --- 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 */