From: Stefan Fritsch Date: Tue, 7 Jun 2011 20:40:21 +0000 (+0000) Subject: Don't return an undefined value if opening of a read-only database fails. X-Git-Tag: 2.3.13~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c405eb52999910da75a77b88d04ee5ba0a53fa02;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/dav/fs/dbm.c b/modules/dav/fs/dbm.c index a456dc5e699..dadacad4567 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;