Fixed (?) bug with get_global_param_string always returning empty string

See https://github.com/CoolProp/CoolProp/issues/228

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-11-20 17:56:52 -05:00
parent be78b4b22f
commit 2f94572dad

View File

@@ -184,7 +184,7 @@ EXPORT_CODE long CONVENTION get_param_index(const char * param){
}
EXPORT_CODE long CONVENTION get_global_param_string(const char *param, char * Output)
{
std::string s = CoolProp::get_global_param_string(param).c_str();
std::string s = CoolProp::get_global_param_string(param);
if (s.size() < strlen(Output)){
strcpy(Output, s.c_str());
return 1;