commit 88b376c9f47d1b4851be142bc6834ec89cbe104f
parent fdfa2bc1a33b0e566fb6c2d6762475c67b7582bd
Author: Christopher Snowhill <kode54@gmail.com>
Date: Mon, 29 Mar 2021 15:16:21 -0700
Fix diskop default path crash if default path unset
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ft2_diskop.c b/src/ft2_diskop.c
@@ -2106,7 +2106,7 @@ static void setDiskOpItem(uint8_t item)
}
const int32_t pathLen = (int32_t)UNICHAR_STRLEN(FReq_CurPathU);
- if (pathLen == 0)
+ if (pathLen == 0 && FReq_ModCurPathU[0] != '\0')
{
memset(FReq_CurPathU, 0, (PATH_MAX + 2) * sizeof (UNICHAR));
UNICHAR_STRCPY(FReq_CurPathU, FReq_ModCurPathU);