Changeset f7d303f in rtems-tools


Ignore:
Timestamp:
May 8, 2018, 5:09:45 AM (13 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
b73f905
Parents:
8dd3803
git-author:
Chris Johns <chrisj@…> (05/08/18 05:09:45)
git-committer:
Chris Johns <chrisj@…> (06/18/18 02:26:05)
Message:

rtemstoolkit/path: Fix crash when going above the root directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/rld-path.cpp

    r8dd3803 rf7d303f  
    146146        else if (dir == "..")
    147147        {
     148          /*
     149           * If the path goes above the root of where we are there is nothing
     150           * that can be done so return the path passed in.
     151           */
    148152          aps.pop_back ();
     153          if (aps.empty ())
     154            return path;
    149155        }
    150156        else
Note: See TracChangeset for help on using the changeset viewer.