# HG changeset patch # User Chris Cannam # Date 1526054450 -3600 # Node ID b10018fcd5eba2b24097eceaedb4959eed031a80 # Parent 048ab927a95238e3c1205afe38a58db483cb5fc1 Check return value diff -r 048ab927a952 -r b10018fcd5eb vamp-support/StaticOutputRdf.h --- a/vamp-support/StaticOutputRdf.h Fri Mar 09 09:09:20 2018 +0000 +++ b/vamp-support/StaticOutputRdf.h Fri May 11 17:00:50 2018 +0100 @@ -159,7 +159,11 @@ // in which pluginKey == libraryId + ":" + pluginId std::string libraryId, pluginId; - decomposePluginKey(pluginKey, libraryId, pluginId); + if (!decomposePluginKey(pluginKey, libraryId, pluginId)) { + std::cerr << "Failed to decompose plugin key \"" << pluginKey + << "\"" << std::endl; + return; + } typedef const uint8_t *S; @@ -306,7 +310,6 @@ pluginId = pluginKey.substr(i + 1); return true; } - }; }