int nr_paths, i, ret = 0;
nr_paths = bt_value_array_get_length(plugin_paths);
- if (nr_paths < 0) {
- BT_CLI_LOGE_APPEND_CAUSE(
- "Cannot load dynamic plugins: no plugin path.");
- ret = -1;
+ if (nr_paths == 0) {
+ BT_LOGI_STR("No dynamic plugin path.");
goto end;
}