]> granicus.if.org Git - apache/commitdiff
No var declarations in the middle of the code.
authorGuenter Knauf <fuankg@apache.org>
Tue, 8 Apr 2008 14:01:49 +0000 (14:01 +0000)
committerGuenter Knauf <fuankg@apache.org>
Tue, 8 Apr 2008 14:01:49 +0000 (14:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645929 13f79535-47bb-0310-9956-ffa450edef68

modules/session/mod_session_dbd.c

index 074afb10e468e14f2125c4b6fd44b747e0d042df..6c7c170347689881eaad82cca5275476dc51a152 100644 (file)
@@ -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 */