Construct dispatch registry on first use to avoid static init order crash

This commit is contained in:
Keith Winstein
2011-10-13 02:10:50 -04:00
parent a01662f126
commit 07d4aedcaa
2 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ namespace Terminal {
DispatchRegistry() : escape(), CSI(), control() {}
};
static DispatchRegistry global_dispatch_registry;
DispatchRegistry & get_global_dispatch_registry( void );
class Dispatcher {
private: