Fix AddExtension now that CloseDownProc can be NULL.

This commit is contained in:
Mathieu Bérard 2008-07-25 10:05:30 -04:00 committed by Adam Jackson
parent eff25430b4
commit ae67508392

View File

@ -84,7 +84,7 @@ AddExtension(char *name, int NumEvents, int NumErrors,
int i;
ExtensionEntry *ext, **newexts;
if (!MainProc || !SwappedMainProc || !CloseDownProc || !MinorOpcodeProc)
if (!MainProc || !SwappedMainProc || !MinorOpcodeProc)
return((ExtensionEntry *) NULL);
if ((lastEvent + NumEvents > LAST_EVENT) ||
(unsigned)(lastError + NumErrors > LAST_ERROR))