1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-02 07:20:34 +00:00

msvc throws debug assert with fopen on a null string

This commit is contained in:
Brad Parker 2017-09-03 23:52:58 -04:00
parent 9e41efbd24
commit 1204715525

@ -363,6 +363,9 @@ bool path_is_compressed_file(const char* path)
*/
bool path_file_exists(const char *path)
{
if (!path || !*path)
return false;
FILE *dummy = fopen(path, "rb");
if (!dummy)