mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-25 07:20:10 +01:00
Fixed open_streamfile_by_filename crashing if empty filename is passed
This commit is contained in:
parent
8e04679fa9
commit
975958b5a9
@ -890,7 +890,7 @@ STREAMFILE* open_streamfile_by_filename(STREAMFILE *streamfile, const char * fil
|
||||
char partname[PATH_LIMIT];
|
||||
char *path, *name;
|
||||
|
||||
if (!streamfile || !filename) return NULL;
|
||||
if (!streamfile || !filename || !filename[0]) return NULL;
|
||||
|
||||
streamfile->get_name(streamfile, fullname, sizeof(fullname));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user