Changeset 067348 in git


Ignore:
Timestamp:
Oct 20, 2022, 3:28:32 PM (5 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
88faa1e0d57ca9a07c48e384ac5a3deef0f53534
Parents:
9a4aedf54793e6eefea03c9c5d55bce8aa414bc8
Message:
fix: compiler warning
File:
1 edited

Legend:

Unmodified
Added
Removed
  • resources/omFindExec.c

    r9a4aed r067348  
    5757        strchr(name, '/') != NULL)
    5858    {
     59      short ok=1;
    5960
    6061#ifdef HAVE_GETCWD
    61       getcwd (tbuf, MAXPATHLEN);
     62      if (getcwd (tbuf, MAXPATHLEN)==NULL) ok=0;
    6263#else
    6364# ifdef HAVE_GETWD
    64       getwd (tbuf);
     65      if (getwd (tbuf)==NULL) ok=0;
    6566# endif
    6667#endif
    6768      strcat (tbuf, "/");
    6869      strcat (tbuf, name);
    69       if (! access(tbuf, F_OK))
     70      if (ok && ! access(tbuf, F_OK))
    7071      {
    7172        strcpy(executable, tbuf);
Note: See TracChangeset for help on using the changeset viewer.