Fix AddExtension now that CloseDownProc can be NULL.
This commit is contained in:
parent
eff25430b4
commit
ae67508392
|
@ -84,7 +84,7 @@ AddExtension(char *name, int NumEvents, int NumErrors,
|
||||||
int i;
|
int i;
|
||||||
ExtensionEntry *ext, **newexts;
|
ExtensionEntry *ext, **newexts;
|
||||||
|
|
||||||
if (!MainProc || !SwappedMainProc || !CloseDownProc || !MinorOpcodeProc)
|
if (!MainProc || !SwappedMainProc || !MinorOpcodeProc)
|
||||||
return((ExtensionEntry *) NULL);
|
return((ExtensionEntry *) NULL);
|
||||||
if ((lastEvent + NumEvents > LAST_EVENT) ||
|
if ((lastEvent + NumEvents > LAST_EVENT) ||
|
||||||
(unsigned)(lastError + NumErrors > LAST_ERROR))
|
(unsigned)(lastError + NumErrors > LAST_ERROR))
|
||||||
|
|
Loading…
Reference in New Issue