diff --git a/src/midi.cpp b/src/midi.cpp index 8f205494..f2cafae2 100644 --- a/src/midi.cpp +++ b/src/midi.cpp @@ -318,7 +318,7 @@ void Output::setDeviceId(int deviceId) { } std::string Output::getDeviceName(int deviceId) { - if (driver) + if (!driver) return ""; try { return driver->getOutputDeviceName(deviceId);