diff plugin/DSSIPluginFactory.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 cc27f35aa75c
line wrap: on
line diff
--- a/plugin/DSSIPluginFactory.cpp	Wed Sep 03 11:10:22 2014 +0100
+++ b/plugin/DSSIPluginFactory.cpp	Wed Sep 03 11:20:18 2014 +0100
@@ -346,8 +346,8 @@
             category = m_taxonomy[identifier];
         }
 
-	if (category == "" && ladspaDescriptor->Name != 0) {
-	    std::string name = ladspaDescriptor->Name;
+	if (category == "") {
+	    std::string name = rtd->name;
 	    if (name.length() > 4 &&
 		name.substr(name.length() - 4) == " VST") {
 		if (descriptor->run_synth || descriptor->run_multiple_synths) {