Re: crash fetching status
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 3 Jan 2012 10:23:29 +0000 (GMT)
Stefan Küng wrote:
> On Thu, Dec 29, 2011 at 16:57, Stefan Küng wrote:
[...]
>>> I looked at similar places elsewhere, and they seemed to follow a
Yes, because NULL is not a valid relpath. The 'relpath' concept is well defined (in svn_dirent_uri.h). The representation of an empty relpath is the empty string.
The real problem here is that find_dir_repos_relpath() can return NULL whereas its callers (including but not limited to this one) expect a non-null value.
So the real solution is either to change find_dir_repos_relpath() so it always returns a valid 'relpath', or to change its callers to code around the fact that it can return NULL.
Does it return NULL to mean the empty relpath or for some other reason?
>> Maybe just rewrite svn_relpath_join() so that NULL is treated as an empty
No. Don't make an exception.
- Julian
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.