summaryrefslogtreecommitdiff
path: root/subversion/mod_dav_svn/reports/mergeinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/mod_dav_svn/reports/mergeinfo.c')
-rw-r--r--subversion/mod_dav_svn/reports/mergeinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/subversion/mod_dav_svn/reports/mergeinfo.c b/subversion/mod_dav_svn/reports/mergeinfo.c
index 79eb86c..15c3071 100644
--- a/subversion/mod_dav_svn/reports/mergeinfo.c
+++ b/subversion/mod_dav_svn/reports/mergeinfo.c
@@ -67,6 +67,9 @@ dav_svn__get_mergeinfo_report(const dav_resource *resource,
= apr_array_make(resource->pool, 0, sizeof(const char *));
/* Sanity check. */
+ if (!resource->info->repos_path)
+ return dav_svn__new_error(resource->pool, HTTP_BAD_REQUEST, 0,
+ "The request does not specify a repository path");
ns = dav_svn__find_ns(doc->namespaces, SVN_XML_NAMESPACE);
if (ns == -1)
{