From c405eb52999910da75a77b88d04ee5ba0a53fa02 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 7 Jun 2011 20:40:21 +0000 Subject: [PATCH] Don't return an undefined value if opening of a read-only database fails. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1133152 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/fs/dbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dav/fs/dbm.c b/modules/dav/fs/dbm.c index a456dc5e69..dadacad456 100644 --- a/modules/dav/fs/dbm.c +++ b/modules/dav/fs/dbm.c @@ -124,7 +124,7 @@ dav_error * dav_dbm_open_direct(apr_pool_t *p, const char *pathname, int ro, dav_db **pdb) { apr_status_t status; - apr_dbm_t *file; + apr_dbm_t *file = NULL; *pdb = NULL; -- 2.40.0