r866338 | malcolm | 2007-08-23 13:01:47 +0000 (Thu, 23 Aug 2007)
Fix 'svn info $REPO_ROOT' for pre-1.2 svn:// servers.
(pre-1.2 svnserve doesn't provide a way to get information about the root).
If running non-recursively, return an error rather than doing nothing at all.
If running recursively, fix an uninitialised memory read that effectively
meant that recursion would terminate before doing anything useful.
Found by: Zing <zing+svndev@fastmail.fm>
* subversion/libsvn_client/info.c
(svn_client_info): Check whether the URL is the repository root URL as early
as possible, and return an error if we're not recursing. If we are
recursing, change where we jump to to avoid checking 'the_ent', which is
uninitialised at this point.