Fix: usage of `bt_value_array_get_length()`
[babeltrace.git] / src / cli / babeltrace2-plugins.c
index 42cda686ac587122f64fd9199db7c1ffda372fcd..8fdfe3e726008671bea3a81f37661750b1194699 100644 (file)
@@ -130,10 +130,8 @@ int load_dynamic_plugins(const bt_value *plugin_paths)
        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;
        }
 
This page took 0.024027 seconds and 4 git commands to generate.