Catalog stub: fix undefinied initiamization order.

As investigated by korli in #13001.
This commit is contained in:
Adrien Destugues
2016-10-15 09:28:56 +02:00
parent 8f58f9c31f
commit 534f22038c
+3 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2014, Adrien Destugues <[email protected]>.
* Copyright 2010-2016, Adrien Destugues <[email protected]>.
* Distributed under the terms of the MIT License.
*/
@@ -10,13 +10,14 @@
#include <locks.h>
static BCatalog sCatalog;
static int32 sCatalogInitOnce = INIT_ONCE_UNINITIALIZED;
BCatalog*
BLocaleRoster::GetCatalog()
{
static BCatalog sCatalog;
#if (__GNUC__ < 3)
asm volatile(".hidden GetCatalog__13BLocaleRoster");
#else