Changeset 18424 for trunk/FACT++


Ignore:
Timestamp:
01/29/16 10:27:14 (9 years ago)
Author:
tbretz
Message:
An empty 'path' crahes newer boosts. Make sure it is not eempty.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Main.h

    r18050 r18424  
    107107        if (path.empty())
    108108        {
    109             path = prgpath;
     109            path = prgpath.empty() ? "." : prgpath;
    110110
    111111            // default path not accessible
    112             if (access(prgpath.empty() ? "." : prgpath.c_str(), W_OK))
     112            if (access(prgpath.c_str(), W_OK))
    113113            {
    114114                path = ".";
Note: See TracChangeset for help on using the changeset viewer.