[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] But with trailing slashes in SVNPath command in httpd.conf

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-09-04 22:38:36 CEST

Branko ─Œibej <brane@xbc.nu> writes:

> >NULL is not a canonical path, lots of the Subversion functions will
> >dump core on a NULL path. I suppose it could return the empty path
> >("") but I don't think that's a good thing to do.
> >
> If "" is the current directory these days, then canonicalizing NULL to
> "" would definitely be wrong. :-)


> >I am happy saying that NULL is an error.
> >
> Sure. The question is whether svn_path_canonicalize sould abort on
> NULL, or pass it through and let some other code abort instead.

It would require special case code in svn_path_canonicalize_nts
instead of at the places that call it, and not all the callers need it
as some cannot have a NULL argument. My first instinct is to say the
current code is correct, it is the responsibilty of the caller not to
pass NULL. What about the (unused) stringbuf version of the function
'void svn_path_canonicalize (svn_stringbuf_t *)' would that accept
NULL as well?

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 4 22:39:22 2002

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.