View | Details | Raw Unified | Return to bug 52559
Collapse All | Expand All

(-)2.2.21/modules/dav/fs/dbm.c (-1 / +9 lines)
Lines 191-198 void dav_dbm_close(dav_db *db) Link Here
191
191
192
dav_error * dav_dbm_fetch(dav_db *db, apr_datum_t key, apr_datum_t *pvalue)
192
dav_error * dav_dbm_fetch(dav_db *db, apr_datum_t key, apr_datum_t *pvalue)
193
{
193
{
194
    apr_status_t status = apr_dbm_fetch(db->file, key, pvalue);
194
    apr_status_t status;
195
195
196
    if (key.dptr == NULL) {
197
        /* no key could be created (namespace not known) => no value */
198
        memset(pvalue, 0, sizeof(*pvalue));
199
        status = APR_SUCCESS;
200
    } else {
201
        status = apr_dbm_fetch(db->file, key, pvalue);
202
    }
203
196
    return dav_fs_dbm_error(db, NULL, status);
204
    return dav_fs_dbm_error(db, NULL, status);
197
}
205
}
198
206

Return to bug 52559