cwk_path_get_extension's length should not point to nullptr

This commit is contained in:
Alex 2023-03-22 20:30:58 +02:00
parent c23385a243
commit 9f0d1aed80
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -182,7 +182,8 @@ namespace Driver
if (cwk_path_has_extension(driver->Name))
{
const char *extension;
cwk_path_get_extension(driver->Name, &extension, nullptr);
size_t extension_length;
cwk_path_get_extension(driver->Name, &extension, &extension_length);
debug("Driver: %s; Extension: %s", driver->Name, extension);
if (strcmp(extension, ".fex") == 0 || strcmp(extension, ".elf") == 0)
{