Mercurial > hg > piper-cpp
changeset 259:b10018fcd5eb
Check return value
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 11 May 2018 17:00:50 +0100 |
parents | 048ab927a952 |
children | 3db4c7998faf |
files | vamp-support/StaticOutputRdf.h |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; } - }; }