[core] add listing exception for Apple SD card readers

* Also fix a Coverity warning
This commit is contained in:
Pete Batard 2019-04-05 22:02:36 +01:00
parent f02fbe3acc
commit 5dbf537dfb
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
4 changed files with 19 additions and 9 deletions

View file

@ -1332,7 +1332,6 @@ BOOL DumpFatDir(const char* path, int32_t cluster)
target = malloc(strlen(path) + safe_strlen(name) + 2);
if ((name == NULL) || (target == NULL)) {
uprintf("Could not allocate buffer");
safe_free(name);
goto out;
}
strcpy(target, path);
@ -1400,6 +1399,8 @@ out:
if (p_iso != NULL)
iso9660_close(p_iso);
}
safe_free(name);
safe_free(target);
return ret;
}