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-861f7616d084
master
Dennis Schridde 2006-09-20 19:52:06 +00:00
parent d39f787caf
commit 915ef314df
1 changed files with 2 additions and 2 deletions

View File

@ -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);