(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
This commit is contained in:
@@ -26,7 +26,7 @@ NetworkGameList *NetworkGameListAddItem(uint32 ip, uint16 port)
|
||||
prev_item = item;
|
||||
}
|
||||
|
||||
MallocT(&item, 1);
|
||||
item = MallocT<NetworkGameList>(1);
|
||||
memset(item, 0, sizeof(*item));
|
||||
item->next = NULL;
|
||||
item->ip = ip;
|
||||
|
Reference in New Issue
Block a user