diff plugin/LADSPAPluginFactory.cpp @ 973:7aa9088e9bcd

Fix various slightly dodgy derefs and the like (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 11:20:18 +0100
parents f5810f1270ae
children b14064bd1f97
line wrap: on
line diff
--- a/plugin/LADSPAPluginFactory.cpp	Wed Sep 03 11:10:22 2014 +0100
+++ b/plugin/LADSPAPluginFactory.cpp	Wed Sep 03 11:20:18 2014 +0100
@@ -730,8 +730,8 @@
 
 	QString category = m_taxonomy[identifier];
 	
-	if (category == "" && descriptor->Name != 0) {
-	    std::string name = descriptor->Name;
+	if (category == "") {
+	    std::string name = rtd->name;
 	    if (name.length() > 4 &&
 		name.substr(name.length() - 4) == " VST") {
 		category = "VST effects";