Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
Origin: sergiomb2@2141d21
Last-update: 2021-01-19
Relate-to: #15
Change-Id: Ib3307d2d609f212b184d3d94ad95f4c0e7184f7a
  • Loading branch information
rzr committed Jan 22, 2021
1 parent c91cf5f commit 0eb409e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,12 +434,12 @@ void Config::setPaths(char const * const argv0) {
m_sDataDir = string(EM_DATADIR) + "/";
m_sExeDir = "./";
if ( *( m_sDataDir.c_str() ) != '/' ) {
const char* ptr=0;
char* ptrw = 0;
//cout<<"relative to exe file"<<endl;
ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32
char const * ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32
#ifdef WIN32
ptrw = (strrchr(argv0,'\\'));
char const * const ptrw = 0; ptrw = (strrchr(argv0,'\\'));
#else
char const * const ptrw = 0;
#endif //TODO: MacOS file sep ':'
if ( ptrw > ptr ) ptr = ptrw;
// assert( (*ptr != 0) );
Expand Down

0 comments on commit 0eb409e

Please sign in to comment.