mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-16 10:54:53 +03:00
0027706: Foundation Classes - OSD_Path::DownTrek() crashes on empty argument
a required check added
This commit is contained in:
parent
07ef8bdfa2
commit
4c6b4bc75a
@ -1085,7 +1085,7 @@ void OSD_Path :: DownTrek ( const TCollection_AsciiString& aName ) {
|
|||||||
|
|
||||||
Standard_Integer pos = myTrek.Length ();
|
Standard_Integer pos = myTrek.Length ();
|
||||||
|
|
||||||
if ( aName.Value ( 1 ) != '|' &&
|
if ( !aName.IsEmpty() && aName.Value ( 1 ) != '|' &&
|
||||||
pos &&
|
pos &&
|
||||||
myTrek.Value ( pos ) != '|'
|
myTrek.Value ( pos ) != '|'
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user