diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2013-09-26 20:08:16 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2014-03-23 18:18:55 +0000 |
commit | 6fea450d41a03d32c10c7da162dfaadd8ead4ece (patch) | |
tree | 242c312354d8956b38d827ee10e4ccdc7f5d4e10 /mi/miinitext.c | |
parent | bf087659f0fb747c471e26c5b287c35877818040 (diff) |
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>
Diffstat (limited to 'mi/miinitext.c')
-rw-r--r-- | mi/miinitext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c index 67511b8d0..9d5125e1f 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; |