fix fds loading

This commit is contained in:
zeromus 2008-05-07 07:39:23 +00:00
parent 3078b40cf4
commit 3db4ae6df5
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ FCEUFILE * FCEU_fopen(const char *path, const char *ipsfn, char *mode, char *ext
FCEUFILE *fceufp;
void *t;
if(strchr(mode,'r'))
if(ipsfn && strchr(mode,'r'))
ipsfile=FCEUD_UTF8fopen(ipsfn,"rb");
fceufp=(FCEUFILE *)malloc(sizeof(FCEUFILE));