Re: svn commit: r33148 - in trunk/subversion: include include/private libsvn_fs libsvn_subr
From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Wed, 17 Sep 2008 21:20:28 -0400
Greg Stein wrote:
How about delaying that strlen() as long as possible, too:
int len;
if (path[0] != '\0' && path[1] == '\0')
if (path[0] == '.' && path[1] == '/')
if (strstr(path, "/./") != NULL)
len = strlen(path);
-- C. Michael Pilato <cmpilato_at_collab.net> CollabNet <> www.collab.net <> Distributed Development On Demand
|
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.