History

Fix diskop default path crash if default path unset

Christopher Snowhill committed 5 years ago

Commit 88b376c1 parent fdfa2bc1 file · +1 −1Browse files

Unified · Split

src/ft2_diskop.c+1−1
@@ -2106,7 +2106,7 @@ static void setDiskOpItem(uint8_t item) · 2105 unmodified lines
21062106 }
21072107
21082108 const int32_t pathLen = (int32_t)UNICHAR_STRLEN(FReq_CurPathU);
2109− if (pathLen == 0)
2109+ if (pathLen == 0 && FReq_ModCurPathU[0] != '\0')
21102110 {
21112111 memset(FReq_CurPathU, 0, (PATH_MAX + 2) * sizeof (UNICHAR));
21122112 UNICHAR_STRCPY(FReq_CurPathU, FReq_ModCurPathU);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t