mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 16:44:52 +00:00
miinitext: move AddStaticExtensions() to LoadExtension()
Separate the function from NewExtensionModule() as the former does only memory reallocation. No functional change. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
@@ -346,10 +346,6 @@ NewExtensionModule(void)
|
||||
ExtensionModule *save = ExtensionModuleList;
|
||||
int n;
|
||||
|
||||
/* Make sure built-in extensions get added to the list before those
|
||||
* in modules. */
|
||||
AddStaticExtensions();
|
||||
|
||||
/* Sanity check */
|
||||
if (!ExtensionModuleList)
|
||||
numExtensionModules = 0;
|
||||
@@ -376,6 +372,10 @@ LoadExtension(const ExtensionModule * e, Bool builtin)
|
||||
if (e == NULL || e->name == NULL)
|
||||
return;
|
||||
|
||||
/* Make sure built-in extensions get added to the list before those
|
||||
* in modules. */
|
||||
AddStaticExtensions();
|
||||
|
||||
if (!(newext = NewExtensionModule()))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user