projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e0fd2c
)
Use a static string variable for dll path.
author
Michael R. Fisher
<mfisher@bketech.com>
Mon, 15 Jul 2013 02:06:25 +0000
(21:06 -0500)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Thu, 8 Aug 2013 19:23:09 +0000
(15:23 -0400)
Making this consistent with all other funtions in this file.
libs/ardour/filesystem_paths.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/filesystem_paths.cc
b/libs/ardour/filesystem_paths.cc
index 73bfaff137f726c0b9854d9516d552ebf8d7e958..bea0e330b9090ece99f0ce037e4e3b1bb63ab9cc 100644
(file)
--- a/
libs/ardour/filesystem_paths.cc
+++ b/
libs/ardour/filesystem_paths.cc
@@
-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;
}