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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to