diff --git a/src/keymap.c b/src/keymap.c index 053bad637..ef30cdbfc 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -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);