Loading DataBase.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -7213,19 +7213,19 @@ Tango::DevVarStringArray *DataBase::db_get_data_for_server_cache(const Tango::De std::string::size_type pos = 0; std::string::size_type start = 0; int idx = 0; std::string tmp_elt; std::string elt; pos = str.find('\0'); while(pos != std::string::npos) { tmp_elt = str.substr(start, pos - start); (*argout)[idx] = CORBA::string_dup(tmp_elt.c_str()); elt = str.substr(start, pos - start); (*argout)[idx] = CORBA::string_dup(elt.c_str()); start = pos + 1; idx++; pos = str.find('\0', start); } tmp_elt = str.substr(start); (*argout)[idx] = CORBA::string_dup(tmp_elt.c_str()); elt = str.substr(start); (*argout)[idx] = CORBA::string_dup(elt.c_str()); mysql_free_result(res); Loading Loading
DataBase.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -7213,19 +7213,19 @@ Tango::DevVarStringArray *DataBase::db_get_data_for_server_cache(const Tango::De std::string::size_type pos = 0; std::string::size_type start = 0; int idx = 0; std::string tmp_elt; std::string elt; pos = str.find('\0'); while(pos != std::string::npos) { tmp_elt = str.substr(start, pos - start); (*argout)[idx] = CORBA::string_dup(tmp_elt.c_str()); elt = str.substr(start, pos - start); (*argout)[idx] = CORBA::string_dup(elt.c_str()); start = pos + 1; idx++; pos = str.find('\0', start); } tmp_elt = str.substr(start); (*argout)[idx] = CORBA::string_dup(tmp_elt.c_str()); elt = str.substr(start); (*argout)[idx] = CORBA::string_dup(elt.c_str()); mysql_free_result(res); Loading