Fix last commit (check pointer against NULL is probably more clear than implicitly converting it to bool).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@740 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
d39f787caf
commit
915ef314df
|
@ -501,14 +501,14 @@ BLOCK_HEAP *psHeap;
|
|||
/* Get some memory for our binding */
|
||||
newMapping = (KEY_MAPPING*)MALLOC(sizeof(KEY_MAPPING));
|
||||
|
||||
ASSERT( newMapping, "Couldn't allocate memory for a key mapping" );
|
||||
ASSERT( newMapping != NULL, "Couldn't allocate memory for a key mapping" );
|
||||
|
||||
/* Plus one for the terminator */
|
||||
|
||||
|
||||
|
||||
newMapping->pName = (STRING*)MALLOC(strlen(name)+1);
|
||||
ASSERT( newMapping->pName, "Couldn't allocate the memory for the string in a mapping" );
|
||||
ASSERT( newMapping->pName != NULL, "Couldn't allocate the memory for the string in a mapping" );
|
||||
|
||||
memSetBlockHeap(psHeap);
|
||||
|
||||
|
|
Loading…
Reference in New Issue