From 407af3b52595b7f72b88590d31b3af62f8c02d1c Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Tue, 8 Apr 2008 14:01:49 +0000 Subject: [PATCH] No var declarations in the middle of the code. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645929 13f79535-47bb-0310-9956-ffa450edef68 --- modules/session/mod_session_dbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/session/mod_session_dbd.c b/modules/session/mod_session_dbd.c index 074afb10e4..6c7c170347 100644 --- a/modules/session/mod_session_dbd.c +++ b/modules/session/mod_session_dbd.c @@ -403,6 +403,7 @@ static apr_status_t dbd_clean(apr_pool_t *p) AP_DECLARE(int) ap_session_dbd_save(request_rec * r, session_rec * z) { + char *buffer; apr_status_t ret = APR_SUCCESS; session_dbd_dir_conf *conf = ap_get_module_config(r->per_dir_config, &session_dbd_module); @@ -414,7 +415,7 @@ AP_DECLARE(int) ap_session_dbd_save(request_rec * r, session_rec * z) apr_table_addn(r->headers_out, "Cache-Control", "no-cache"); /* must we create a uuid? */ - char *buffer = apr_pcalloc(r->pool, APR_UUID_FORMATTED_LENGTH + 1); + buffer = apr_pcalloc(r->pool, APR_UUID_FORMATTED_LENGTH + 1); apr_uuid_format(buffer, z->uuid); /* save the session with the uuid as key */ -- 2.50.1