copy paths to variables rather than uninitialized data

This commit is contained in:
Markus Kitsinger (SwooshyCueb) 2017-01-12 21:21:12 -06:00 committed by zeromus
parent 558cbf71d2
commit 125df2970e
1 changed files with 2 additions and 2 deletions

View File

@ -309,8 +309,8 @@ bool CommandLine::parse(int argc,char **argv)
//system equipment
case OPT_CONSOLE_TYPE: console_type = optarg; break;
case OPT_ARM9: _bios_arm9 = strdup(_bios_arm9); break;
case OPT_ARM7: _bios_arm7 = strdup(_bios_arm7); break;
case OPT_ARM9: _bios_arm9 = strdup(optarg); break;
case OPT_ARM7: _bios_arm7 = strdup(optarg); break;
//slot-1 contents
case OPT_SLOT1: slot1 = strtoupper(optarg); break;