diff options
author | Hubert Maier | 2011-04-29 14:05:21 +0300 |
---|---|---|
committer | Ori Avtalion | 2011-04-29 14:08:49 +0300 |
commit | 79b45cf53500297e1365d78612ce7e4d1d18e204 (patch) | |
tree | 2356d85bfa1577413f8fe0d671eaf4bf3610eeec | |
parent | 5dd3c24238f2a8f2b2cc489d986b7554ff5c9b8c (diff) | |
download | scummvm-rg350-79b45cf53500297e1365d78612ce7e4d1d18e204.tar.gz scummvm-rg350-79b45cf53500297e1365d78612ce7e4d1d18e204.tar.bz2 scummvm-rg350-79b45cf53500297e1365d78612ce7e4d1d18e204.zip |
AMIGAOS: Fix CAMD compiler warning
-rw-r--r-- | backends/midi/camd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/camd.cpp b/backends/midi/camd.cpp index 9909cb00cf..cc791cf7c0 100644 --- a/backends/midi/camd.cpp +++ b/backends/midi/camd.cpp @@ -137,8 +137,8 @@ void MidiDriver_CAMD::sysEx(const byte *msg, uint16 length) { char *MidiDriver_CAMD::getDevice() { char *retname = NULL; - APTR key; - if (key = _ICamd->LockCAMD(CD_Linkages)) { + APTR key = _ICamd->LockCAMD(CD_Linkages); + if (key != NULL) { struct MidiCluster *cluster = _ICamd->NextCluster(NULL); while (cluster && !retname) { |