aboutsummaryrefslogtreecommitdiff
path: root/backends/midi
diff options
context:
space:
mode:
authorHubert Maier2011-04-29 14:05:21 +0300
committerOri Avtalion2011-04-29 14:08:49 +0300
commit79b45cf53500297e1365d78612ce7e4d1d18e204 (patch)
tree2356d85bfa1577413f8fe0d671eaf4bf3610eeec /backends/midi
parent5dd3c24238f2a8f2b2cc489d986b7554ff5c9b8c (diff)
downloadscummvm-rg350-79b45cf53500297e1365d78612ce7e4d1d18e204.tar.gz
scummvm-rg350-79b45cf53500297e1365d78612ce7e4d1d18e204.tar.bz2
scummvm-rg350-79b45cf53500297e1365d78612ce7e4d1d18e204.zip
AMIGAOS: Fix CAMD compiler warning
Diffstat (limited to 'backends/midi')
-rw-r--r--backends/midi/camd.cpp4
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) {