simplify using utils::strdup()
This commit is contained in:
@ -205,9 +205,7 @@ int FixTempBerendsen::modify_param(int narg, char **arg)
|
||||
tflag = 0;
|
||||
}
|
||||
delete [] id_temp;
|
||||
int n = strlen(arg[1]) + 1;
|
||||
id_temp = new char[n];
|
||||
strcpy(id_temp,arg[1]);
|
||||
id_temp = utils::strdup(arg[1]);
|
||||
|
||||
int icompute = modify->find_compute(id_temp);
|
||||
if (icompute < 0)
|
||||
|
||||
Reference in New Issue
Block a user