]> git.sesse.net Git - mlt/commitdiff
fix attempt to construct LADSPA plugin with no _init.
authorDan Dennedy <dan@dennedy.org>
Thu, 24 Nov 2011 04:34:46 +0000 (20:34 -0800)
committerDan Dennedy <dan@dennedy.org>
Thu, 24 Nov 2011 04:34:46 +0000 (20:34 -0800)
src/modules/jackrack/plugin_mgr.c

index 7d96dfcf53bd83716815762237aa726e52bf1c49..0d67162fb2c5df9448de3635d34f55ca8b3b2e62 100644 (file)
@@ -106,7 +106,7 @@ plugin_mgr_get_object_file_plugins (plugin_mgr_t * plugin_mgr, const char * file
 #ifdef __DARWIN__
   if (!get_descriptor (0)) {
     void (*constructor)(void) = dlsym (dl_handle, "_init");
-    constructor();
+    if (constructor) constructor();
   }
 #endif