mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Fixed usages of path_list_separator
This commit is contained in:
parent
4043b67e0b
commit
dfd6cbe6b4
3 changed files with 6 additions and 6 deletions
|
@ -71,7 +71,7 @@ static bool can_read(const string& path)
|
|||
}
|
||||
|
||||
static string zeek_path_value;
|
||||
const string zeek_path_list_separator(1, path_list_separator);
|
||||
const string zeek_path_list_separator(path_list_separator.begin(), path_list_separator.end());
|
||||
|
||||
namespace zeek::util
|
||||
{
|
||||
|
@ -576,7 +576,7 @@ void add_to_zeek_path(const string& dir)
|
|||
// Make sure path is initialized.
|
||||
zeek_path();
|
||||
|
||||
zeek_path_value += string(zeek_path_list_separator) + dir;
|
||||
zeek_path_value += zeek_path_list_separator + dir;
|
||||
}
|
||||
|
||||
FILE* open_package(string& path, const string& mode)
|
||||
|
@ -754,7 +754,7 @@ string without_zeekpath_component(std::string_view path)
|
|||
{
|
||||
string rval = normalize_path(path);
|
||||
|
||||
const auto paths = tokenize_string(zeek_path(), path_list_separator);
|
||||
const auto paths = tokenize_string(zeek_path(), path_list_separator[0]);
|
||||
|
||||
for ( size_t i = 0; i < paths.size(); ++i )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue