fix null assignments to std::strings the right way

This commit is contained in:
zeromus 2017-05-05 14:26:34 -05:00
parent 4707380746
commit 126db2d6de
1 changed files with 2 additions and 10 deletions

View File

@ -658,16 +658,8 @@ struct LastRom {
int NDS_LoadROM(const char *filename, const char *physicalName, const char *logicalFilename)
{
lastRom.filename = filename;
if (physicalName != NULL )
{
lastRom.physicalName = physicalName;
}
if (logicalFilename != NULL)
{
lastRom.logicalFilename = logicalFilename;
}
lastRom.physicalName = physicalName ? physicalName : "";
lastRom.logicalFilename = logicalFilename ? logicalFilename : "";
int ret;
char buf[MAX_PATH];