ref: 88b376c9f47d1b4851be142bc6834ec89cbe104f
parent: fdfa2bc1a33b0e566fb6c2d6762475c67b7582bd
author: Christopher Snowhill <kode54@gmail.com>
date: Mon Mar 29 11:16:48 EDT 2021
Fix diskop default path crash if default path unset
--- a/src/ft2_diskop.c
+++ b/src/ft2_diskop.c
@@ -2106,7 +2106,7 @@
}
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);