Changeset 13159 for trunk


Ignore:
Timestamp:
03/21/12 14:22:06 (13 years ago)
Author:
tbretz
Message:
Assume that an empty folder name means '.'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DimWriteStatistics.cc

    r12346 r13159  
    178178{
    179179    struct statvfs vfs;
    180     if (statvfs(folder.c_str(), &vfs))
     180    if (statvfs(folder.empty()?".":folder.c_str(), &vfs))
    181181    {
    182182        fLog.Error("statvfs() failed for '"+folder+"'... ignoring it.");
     
    184184    }
    185185
    186     fCurrentFolder = folder;
     186    fCurrentFolder = folder.empty()?".":folder;
    187187    return true;
    188188}
Note: See TracChangeset for help on using the changeset viewer.