You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2011/06/07 22:40:21 UTC

svn commit: r1133152 - /httpd/httpd/trunk/modules/dav/fs/dbm.c

Author: sf
Date: Tue Jun  7 20:40:21 2011
New Revision: 1133152

URL: http://svn.apache.org/viewvc?rev=1133152&view=rev
Log:
Don't return an undefined value if opening of a read-only database fails.

Modified:
    httpd/httpd/trunk/modules/dav/fs/dbm.c

Modified: httpd/httpd/trunk/modules/dav/fs/dbm.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/dav/fs/dbm.c?rev=1133152&r1=1133151&r2=1133152&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/dav/fs/dbm.c (original)
+++ httpd/httpd/trunk/modules/dav/fs/dbm.c Tue Jun  7 20:40:21 2011
@@ -124,7 +124,7 @@ dav_error * dav_dbm_open_direct(apr_pool
                                 dav_db **pdb)
 {
     apr_status_t status;
-    apr_dbm_t *file;
+    apr_dbm_t *file = NULL;
 
     *pdb = NULL;