13
0

Use a static string variable for dll path.

Making this consistent with all other funtions in this file.
This commit is contained in:
Michael R. Fisher 2013-07-14 21:06:25 -05:00 committed by Paul Davis
parent 5e0fd2c666
commit bc4fe5e56a

View File

@ -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;
}