Skip to content

Commit

Permalink
osc: Skip loading obsolete plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Dan <dan.nechita@analog.com>
  • Loading branch information
dNechita committed Jan 9, 2024
1 parent 925d516 commit 6ce32d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,11 @@ static void load_plugins(GtkWidget *notebook, const char *ini_fn)
#endif
snprintf(buf, sizeof(buf), "%s/%s", plugin_dir, ent->d_name);

/* Don't load obsolete plugins to avoid any potential issues */
if (!strncmp("fmcomms1.", ent->d_name, strlen("fmcomms1."))) {
continue;
}

lib = dlopen(buf, RTLD_LOCAL | RTLD_LAZY);
if (!lib) {
fprintf(stderr, "Failed to load plugin \"%s\": %s\n",
Expand Down

0 comments on commit 6ce32d8

Please sign in to comment.