- fix up some error handling in apr_dbm.c
- use "dbm" consistently for the apr_dbm_t parameter
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87814
13f79535-47bb-0310-9956-
ffa450edef68
int errcode;
const char *errstr;
dav_error *err;
+ char errbuf[200];
if (status == APR_SUCCESS)
return NULL;
errstr = "Could not open property database.";
}
else {
- apr_dbm_geterror(db->file, &errcode, &errstr);
+ (void) apr_dbm_geterror(db->file, &errcode, errbuf, sizeof(errbuf));
+ errstr = apr_pstrdup(p, errbuf);
}
err = dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, errcode, errstr);