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:
parent
bf087659f0
commit
6fea450d41
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user