13
0

We already checked for vstfx being NULL, so the second

check can reasonably be an assert.


git-svn-id: svn://localhost/ardour2/branches/3.0@11540 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-02-28 13:40:37 +00:00
parent cecf343109
commit bda741fbcd

View File

@ -5,6 +5,7 @@
/***********************************************************/
#include <iostream>
#include <cassert>
#include <sys/types.h>
#include <sys/stat.h>
@ -279,6 +280,8 @@ int vstfx_can_midi (VSTState* vstfx)
static VSTInfo *
vstfx_info_from_plugin (VSTState* vstfx)
{
assert (vstfx);
VSTInfo* info = (VSTInfo*) malloc (sizeof (VSTInfo));
AEffect *plugin;
@ -290,12 +293,6 @@ vstfx_info_from_plugin (VSTState* vstfx)
char creator[65] = "Unknown\0";
if(!vstfx)
{
vstfx_error( "** ERROR ** VSTFXinfofile : vstfx ptr is 0\n" );
return 0;
}
if(!info)
return 0;