Opened 5 years ago

Closed 5 years ago

#893 closed defect (fixed)

dirname("") triggers assertion

Reported by: Peter Owned by: Peter
Priority: trivial Milestone: yat 0.14.4
Component: utility Version: 0.14.3
Keywords: Cc:


Calling dirname with empty string triggers an assertion. If assertions are disabled, function behaves correctly i.e. returns ".".

Change History (2)

comment:1 Changed 5 years ago by Peter

Owner: changed from Jari Häkkinen to Peter
Status: newassigned

comment:2 Changed 5 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [3667]) closes #893 that dirname("") caused an assertion, and also fixed bug that basename("") did not return "."

Note: See TracTickets for help on using tickets.