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:
parent
cecf343109
commit
bda741fbcd
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user