}
/*
- * Extracts the various paths from the string arg, delimited by ':',
- * and appends them to the array value object plugin_paths.
+ * Extracts the various paths from the string arg, delimited by ':' on UNIX,
+ * ';' on Windows, and appends them to the array value object `plugin_paths`.
*/
int bt_config_append_plugin_paths(
bt_value *plugin_paths, const char *arg)
ret = bt_value_array_append_string_element(
plugin_paths, dir->str);
- if (ret != BT_VALUE_STATUS_OK) {
+ if (ret < 0) {
ret = -1;
goto end;
}