Display length & check digit of entered EAN-13 in metadata dialogue
[ardour.git] / gtk2_ardour / linux_vst_gui_support.cc
index 5eaf485c7569587ff45bce90c1d9d70828e33282..e438ed6f926f98c83a28d6c96b199b3aa7b38e64 100644 (file)
 /** VSTFX - An engine based on FST for handling linuxVST plugins **/
 /******************************************************************/
 
-/** EDITOR tab stops at 4 **/
-
 #include <stdlib.h>
 #include <stdio.h>
 #include <libgen.h>
+#include <assert.h>
 
 #include <pthread.h>
 #include <signal.h>
@@ -772,6 +771,10 @@ vstfx_event_loop_remove_plugin (VSTState* vstfx)
                }
        }
 
+       // if this function is called, there must be
+       // at least one plugin in the linked list
+       assert(vstfx_first);
+
        if (vstfx_first == vstfx) {
                vstfx_first = vstfx_first->next;
        }