httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1133152 - /httpd/httpd/trunk/modules/dav/fs/dbm.c
Date Tue, 07 Jun 2011 20:40:21 GMT
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;
 



Mime
View raw message