Unified · Split
| @@ -2106,7 +2106,7 @@ static void setDiskOpItem(uint8_t item) · 2105 unmodified lines | ||
| 2106 | 2106 | } |
| 2107 | 2107 | |
| 2108 | 2108 | const int32_t pathLen = (int32_t)UNICHAR_STRLEN(FReq_CurPathU); |
| 2109 | − if (pathLen == 0) | |
| 2109 | + if (pathLen == 0 && FReq_ModCurPathU[0] != '\0') | |
| 2110 | 2110 | { |
| 2111 | 2111 | memset(FReq_CurPathU, 0, (PATH_MAX + 2) * sizeof (UNICHAR)); |
| 2112 | 2112 | UNICHAR_STRCPY(FReq_CurPathU, FReq_ModCurPathU); |