Use a static string variable for dll path.
Making this consistent with all other funtions in this file.
This commit is contained in:
parent
5e0fd2c666
commit
bc4fe5e56a
@ -86,11 +86,14 @@ user_config_directory ()
|
||||
std::string
|
||||
ardour_dll_directory ()
|
||||
{
|
||||
std::string s = Glib::getenv("ARDOUR_DLL_PATH");
|
||||
static std::string s;
|
||||
|
||||
if (s.empty()) {
|
||||
std::cerr << _("ARDOUR_DLL_PATH not set in environment - exiting\n");
|
||||
::exit (1);
|
||||
}
|
||||
s = Glib::getenv("ARDOUR_DLL_PATH");
|
||||
std::cerr << _("ARDOUR_DLL_PATH not set in environment - exiting\n");
|
||||
::exit (1);
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user