forked from github/server
leak: duplicate assignment to building_type.name in tests
This commit is contained in:
parent
2abdba9e8a
commit
e6f2864327
|
@ -154,7 +154,6 @@ building_type * test_create_buildingtype(const char * name)
|
||||||
{
|
{
|
||||||
building_type *btype = bt_get_or_create(name);
|
building_type *btype = bt_get_or_create(name);
|
||||||
btype->flags = BTF_NAMECHANGE;
|
btype->flags = BTF_NAMECHANGE;
|
||||||
btype->_name = _strdup(name);
|
|
||||||
if (!btype->construction) {
|
if (!btype->construction) {
|
||||||
btype->construction = (construction *)calloc(sizeof(construction), 1);
|
btype->construction = (construction *)calloc(sizeof(construction), 1);
|
||||||
btype->construction->skill = SK_BUILDING;
|
btype->construction->skill = SK_BUILDING;
|
||||||
|
|
Loading…
Reference in New Issue