mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Fix AddExtension now that CloseDownProc can be NULL.
This commit is contained in:
committed by
Adam Jackson
parent
eff25430b4
commit
ae67508392
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user