From 6fea450d41a03d32c10c7da162dfaadd8ead4ece Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 26 Sep 2013 20:08:16 +0100 Subject: [PATCH] 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 Reviewed-by: Keith Packard --- mi/miinitext.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mi/miinitext.c b/mi/miinitext.c index 67511b8..9d5125e 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -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; -- 2.7.4