cleanup
- fix possible crash in conc (but it's still an ugly hack) - fix noob usage of strcmp - flag some memory leaks (it would be nice, if the author(s) would clean up the mess himself) - fix crash in substr - whitespace cleanup there are plenty more memory leaks in command.cpp - for example, every goto in cubescript does not clean up anything
This commit is contained in:
@@ -920,7 +920,7 @@ int pckserversort(pckserver **a, pckserver **b)
|
||||
{
|
||||
if((*a)->ping < 0) return ((*b)->ping < 0) ? 0 : 1;
|
||||
if((*b)->ping < 0) return -1;
|
||||
|
||||
|
||||
return (*a)->ping == (*b)->ping ? 0 : ((*a)->ping < (*b)->ping ? -1 : 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user