fix null assignments to std::strings the right way
This commit is contained in:
parent
4707380746
commit
126db2d6de
|
@ -658,16 +658,8 @@ struct LastRom {
|
||||||
int NDS_LoadROM(const char *filename, const char *physicalName, const char *logicalFilename)
|
int NDS_LoadROM(const char *filename, const char *physicalName, const char *logicalFilename)
|
||||||
{
|
{
|
||||||
lastRom.filename = filename;
|
lastRom.filename = filename;
|
||||||
|
lastRom.physicalName = physicalName ? physicalName : "";
|
||||||
if (physicalName != NULL )
|
lastRom.logicalFilename = logicalFilename ? logicalFilename : "";
|
||||||
{
|
|
||||||
lastRom.physicalName = physicalName;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (logicalFilename != NULL)
|
|
||||||
{
|
|
||||||
lastRom.logicalFilename = logicalFilename;
|
|
||||||
}
|
|
||||||
|
|
||||||
int ret;
|
int ret;
|
||||||
char buf[MAX_PATH];
|
char buf[MAX_PATH];
|
||||||
|
|
Loading…
Reference in New Issue