Skip to content
Snippets Groups Projects

catalyst_api: handle the last path entry in the envvar

Merged Ben Boeckel requested to merge ben.boeckel/catalyst:handle-last-path-entry into master
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
@@ -74,6 +74,7 @@ static catalyst_handle_t handle_from_env(const char* impl_name)
handle = handle_open(curpath, impl_name);
if (handle_is_valid(handle))
{
curpath = NULL;
break;
}
}
@@ -84,6 +85,11 @@ static catalyst_handle_t handle_from_env(const char* impl_name)
curpath = pathsep;
}
}
if (!handle_is_valid(handle) && curpath)
{
handle = handle_open(curpath, impl_name);
}
}
free(paths);
Loading