diff options
Diffstat (limited to 'utility/database.c')
-rw-r--r-- | utility/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/database.c b/utility/database.c index e7650aa..a979268 100644 --- a/utility/database.c +++ b/utility/database.c | |||
@@ -19,7 +19,7 @@ apr_status_t database_connect(config_t *cfg) | |||
19 | { | 19 | { |
20 | apr_status_t rv; | 20 | apr_status_t rv; |
21 | if (!cfg->dbconn) { | 21 | if (!cfg->dbconn) { |
22 | cfg->dbconn = apr_palloc(cfg->pool, sizeof(config_dbd_t)); | 22 | cfg->dbconn = apr_pcalloc(cfg->pool, sizeof(config_dbd_t)); |
23 | } | 23 | } |
24 | rv = apr_dbd_get_driver(cfg->pool, cfg->dbdriver, &(cfg->dbconn->driver)); | 24 | rv = apr_dbd_get_driver(cfg->pool, cfg->dbdriver, &(cfg->dbconn->driver)); |
25 | if (rv) | 25 | if (rv) |