Replace strdup with mystrdup
This commit is contained in:
parent
8a8cbb81e4
commit
a87acf56b7
@ -2557,7 +2557,7 @@ int LuaScriptInterface::elements_allocate(lua_State * l)
|
|||||||
newID = i;
|
newID = i;
|
||||||
luacon_sim->elements[i] = Element();
|
luacon_sim->elements[i] = Element();
|
||||||
luacon_sim->elements[i].Enabled = true;
|
luacon_sim->elements[i].Enabled = true;
|
||||||
luacon_sim->elements[i].Identifier = strdup(identifier.c_str());
|
luacon_sim->elements[i].Identifier = mystrdup(identifier.c_str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2571,7 +2571,7 @@ int LuaScriptInterface::elements_allocate(lua_State * l)
|
|||||||
newID = i;
|
newID = i;
|
||||||
luacon_sim->elements[i] = Element();
|
luacon_sim->elements[i] = Element();
|
||||||
luacon_sim->elements[i].Enabled = true;
|
luacon_sim->elements[i].Enabled = true;
|
||||||
luacon_sim->elements[i].Identifier = strdup(identifier.c_str());
|
luacon_sim->elements[i].Identifier = mystrdup(identifier.c_str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user