apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1362894 - /apr/apr-util/branches/1.5.x/dbd/apr_dbd_freetds.c
Date Wed, 18 Jul 2012 11:58:41 GMT
Author: trawick
Date: Wed Jul 18 11:58:41 2012
New Revision: 1362894

URL: http://svn.apache.org/viewvc?rev=1362894&view=rev
Log:
merge r1362892 from apr trunk:

APR dbd FreeTDS support: Fix spurious API errors caused by 
unitialized fields.

Use apr_pcalloc instead of apr_palloc when allocating the dbd
structure so that all fields are initialized.

Submitted by: TROY.LIU 劉春偉 <TROY.LIU deltaww.com.cn>
Reviewed by: trawick

Modified:
    apr/apr-util/branches/1.5.x/dbd/apr_dbd_freetds.c

Modified: apr/apr-util/branches/1.5.x/dbd/apr_dbd_freetds.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.5.x/dbd/apr_dbd_freetds.c?rev=1362894&r1=1362893&r2=1362894&view=diff
==============================================================================
--- apr/apr-util/branches/1.5.x/dbd/apr_dbd_freetds.c (original)
+++ apr/apr-util/branches/1.5.x/dbd/apr_dbd_freetds.c Wed Jul 18 11:58:41 2012
@@ -627,7 +627,7 @@ static apr_dbd_t *dbd_freetds_open(apr_p
     if (process == NULL) {
         return NULL;
     }
-    sql = apr_palloc (pool, sizeof (apr_dbd_t));
+    sql = apr_pcalloc(pool, sizeof (apr_dbd_t));
     sql->pool = pool;
     sql->proc = process;
     sql->params = params;



Mime
View raw message