xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/Tests/Conf conf.cpp
Date Fri, 07 Dec 2001 19:09:58 GMT
dbertoni    01/12/07 11:09:58

  Modified:    c/Tests/Conf conf.cpp
  Log:
  Check to make sure path separator was foun.
  
  Revision  Changes    Path
  1.17      +9 -4      xml-xalan/c/Tests/Conf/conf.cpp
  
  Index: conf.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Conf/conf.cpp,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- conf.cpp	2001/12/04 19:20:48	1.16
  +++ conf.cpp	2001/12/07 19:09:58	1.17
  @@ -248,11 +248,16 @@
   	// Do we need to set the default output directory??
   	if (fsetOut)
   	{
  -		unsigned int ii = lastIndexOf(baseDir,charAt(pathSep,0));
  -		outDir = substring(baseDir, 0, ii+1);
  -		append(outDir,XalanDOMString("CONF-results"));
  +		const unsigned int	ii = lastIndexOf(baseDir,charAt(pathSep,0));
  +
  +		if (ii < length(baseDir))
  +		{
  +			outDir = substring(baseDir, 0, ii + 1);
  +		}
  +
  +		append(outDir, XalanDOMString("CONF-results"));
   		f.checkAndCreateDir(outDir);
  -		append(outDir,pathSep);
  +		append(outDir, pathSep);
   	}
   	if (fsetGold)
   	{
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message