Changeset 1782 for trunk/dll/pathutil.c


Ignore:
Timestamp:
Jun 28, 2014, 11:34:01 PM (11 years ago)
Author:
Gregg Young
Message:

Addition code issues found based on cppcheck warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/pathutil.c

    r1761 r1782  
    2222                So calls to these functions had to be changed.
    2323  21 Mar 14 SHL Add IsAbsolutePath
     24  28 Jun 14 GKY Fix errors identified with CPPCheck;
    2425
    2526***********************************************************************/
     
    263264    }
    264265    // if it doesn't have an extension try it with all the standard ones and add if found
    265     else if (szCmdLine && (!strchr(szCmdLine, '.') ||
    266                            strrchr(szCmdLine, '.' ) < strrchr(szCmdLine, '\\'))) {
     266    else if (!strchr(szCmdLine, '.') ||
     267             strrchr(szCmdLine, '.' ) < strrchr(szCmdLine, '\\')) {
    267268      if (!strchr(szCmdLine, ' ')) {
    268269        // strip quotes readded by BuildQuotedFileName
Note: See TracChangeset for help on using the changeset viewer.