fix breakage for optimized build caused by semantically critical statement inside...
[ardour.git] / libs / ardour / control_protocol_search_path.cc
index 157531cbf251eba7e398e9f76a4f450e570ba5f7..254cd03fe94c23fb9a91c4460d6b76d97ea4c706 100644 (file)
@@ -36,18 +36,11 @@ namespace ARDOUR {
 SearchPath
 control_protocol_search_path ()
 {
-       SearchPath spath (user_config_directory ());
-
+       SearchPath spath(user_config_directory ());
        spath += ardour_dll_directory ();
        spath.add_subdirectory_to_paths (surfaces_dir_name);
-
-       bool surfaces_path_defined = false;
-       SearchPath spath_env (Glib::getenv(surfaces_env_variable_name, surfaces_path_defined));
        
-       if (surfaces_path_defined) {
-               spath += spath_env;
-       }
-
+       spath += SearchPath(Glib::getenv(surfaces_env_variable_name));
        return spath;
 }