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

View File

@ -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)