You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fu...@apache.org on 2008/04/08 16:01:51 UTC

svn commit: r645929 - /httpd/httpd/trunk/modules/session/mod_session_dbd.c

Author: fuankg
Date: Tue Apr  8 07:01:49 2008
New Revision: 645929

URL: http://svn.apache.org/viewvc?rev=645929&view=rev
Log:
No var declarations in the middle of the code.

Modified:
    httpd/httpd/trunk/modules/session/mod_session_dbd.c

Modified: httpd/httpd/trunk/modules/session/mod_session_dbd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session_dbd.c?rev=645929&r1=645928&r2=645929&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/session/mod_session_dbd.c (original)
+++ httpd/httpd/trunk/modules/session/mod_session_dbd.c Tue Apr  8 07:01:49 2008
@@ -403,6 +403,7 @@
 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 @@
         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 */