Skip to content
Snippets Groups Projects
Commit a3744864 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

check for empty symbol instead of NULL symbol arg, remove unnecessary static global init

parent 3cf58d70
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ static void plugin_tilde_poplocale (void) {} ...@@ -59,7 +59,7 @@ static void plugin_tilde_poplocale (void) {}
static int plugin_tilde_have_plugin(Pd_Plugin_Tilde* x); static int plugin_tilde_have_plugin(Pd_Plugin_Tilde* x);
static t_class* plugin_tilde_class = NULL; static t_class* plugin_tilde_class;
void plugin_tilde_setup (void) void plugin_tilde_setup (void)
{ {
...@@ -109,7 +109,7 @@ static void* plugin_tilde_new (t_symbol* s_name, t_symbol* s_lib_name) ...@@ -109,7 +109,7 @@ static void* plugin_tilde_new (t_symbol* s_name, t_symbol* s_lib_name)
x->dsp_vec_length = 0; x->dsp_vec_length = 0;
x->dsp_active = 0; x->dsp_active = 0;
if (s_name->s_name != NULL) { if (s_name != &s_) {
if (s_lib_name->s_name == NULL || strlen (s_lib_name->s_name) == 0) if (s_lib_name->s_name == NULL || strlen (s_lib_name->s_name) == 0)
x->plugin_library_filename = plugin_tilde_search_plugin (x, s_name->s_name); x->plugin_library_filename = plugin_tilde_search_plugin (x, s_name->s_name);
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment