Skip to content
Browse files

fix SEGFAULT in Extension::LoadModules

  • Loading branch information...
1 parent 388e3f8 commit 2eb923951c6b305989d3f0eb1c91175bdd21da6f @d1saster committed Dec 3, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/runtime/ext/extension.cpp
View
4 src/runtime/ext/extension.cpp
@@ -50,6 +50,10 @@ Extension::Extension(litstr name, const char *version /* = "" */)
}
void Extension::LoadModules(Hdf hdf) {
+ if (s_registered_extensions == NULL) {
+ s_registered_extensions = new ExtensionMap();
+ }
+
ASSERT(s_registered_extensions);
for (ExtensionMap::const_iterator iter = s_registered_extensions->begin();
iter != s_registered_extensions->end(); ++iter) {

0 comments on commit 2eb9239

Please sign in to comment.
Something went wrong with that request. Please try again.