modules/dav/main/util_lock.c:728: error: UNINITIALIZED_VALUE
  The value read from locks_present was never initialized.

modules/dav/main/util_lock.c:728:13: 
726.         }
727. 
728.         if (locks_present)
                 ^
729.             return DAV_RESOURCE_LOCK_NULL;
730.     }

DAV_DECLARE(int) dav_get_resource_state(request_rec *r,
                                        const dav_resource *resource)
{
    const dav_hooks_locks *hooks = DAV_GET_HOOKS_LOCKS(r);
    if (resource->exists)
        return DAV_RESOURCE_EXISTS;
    if (hooks != NULL) {
        dav_error *err;
        dav_lockdb *lockdb;
        int locks_present;
        if (r->path_info != NULL && *r->path_info != '\0') {
            return DAV_RESOURCE_NULL;
        }
        if ((err = (*hooks->open_lockdb)(r, 1, 1, &lockdb)) == NULL) {
            err = (*hooks->has_locks)(lockdb, resource, &locks_present);
            (*hooks->close_lockdb)(lockdb);
        }
        if (err != NULL) {
            ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00623)
                          "Failed to query lock-null status for %s",
                          r->filename);
            return DAV_RESOURCE_ERROR;
        }
        if (locks_present)
            return DAV_RESOURCE_LOCK_NULL;
    }
    return DAV_RESOURCE_NULL;
}
['DAV_DECLARE(int) dav_get_resource_state(request_rec *r,\n                                        const dav_resource *resource)\n{\n    const dav_hooks_locks *hooks = DAV_GET_HOOKS_LOCKS(r);\n    if (resource->exists)\n        return DAV_RESOURCE_EXISTS;\n    if (hooks != NULL) {\n        dav_error *err;\n        dav_lockdb *lockdb;\n        int locks_present;\n        if (r->path_info != NULL && *r->path_info != \'\\0\') {\n            return DAV_RESOURCE_NULL;\n        }\n        if ((err = (*hooks->open_lockdb)(r, 1, 1, &lockdb)) == NULL) {\n            err = (*hooks->has_locks)(lockdb, resource, &locks_present);\n            (*hooks->close_lockdb)(lockdb);\n        }\n        if (err != NULL) {\n            ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00623)\n                          "Failed to query lock-null status for %s",\n                          r->filename);\n            return DAV_RESOURCE_ERROR;\n        }\n        if (locks_present)\n            return DAV_RESOURCE_LOCK_NULL;\n    }\n    return DAV_RESOURCE_NULL;\n}']