mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Fix crash if envvar not set.
svn-id: r4286
This commit is contained in:
+2
-1
@@ -386,7 +386,8 @@ int MidiDriver_SEQ::open(int mode) {
|
||||
error("Cannot open /dev/null to dump midi output");
|
||||
}
|
||||
|
||||
_device_num = atoi(getenv("SCUMMVM_MIDIPORT"));
|
||||
if (getenv("SCUMMVM_MIDIPORT"))
|
||||
_device_num = atoi(getenv("SCUMMVM_MIDIPORT"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user