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

Re: [PATCH] skip_uri_schema without strlen

From: Uwe Zeisberger <zeisberg_at_informatik.uni-freiburg.de>
Date: 2004-12-23 18:04:23 CET

Oops, I made (at least) two typos:
 
Uwe Zeisberger wrote:
> {{{
> * subversion/libsvn_subr/path.c
> (skip_uri_schema): Rewrite. Now it doesn't use strlen anymore.
> The old version was broken if path ends with "://"
>
> * subversion/tests/libsvn_subr/path-test.c
> (test_is_url): add to test cases and calculate the length of the list
this should be two ----^, ...

> - && (path[j + 2] == '/'))
> - return path + j + 3;
> -
> - return NULL;
> + if (path[j] == ':')
> + {
> + if (path[j + 1] == '/' && path[j + 2] == '/')
> + return path = j = 3;
... and the previous line should read

+ return path + j + 3;

> + else
> + return NULL;
> + }
> }

Uwe

-- 
Uwe Zeisberger
fib where fib = 0 : 1 : zipWith (+) fib (tail fib)

Received on Thu Dec 23 18:05:38 2004

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.