Catalog stub: fix undefinied initiamization order.
As investigated by korli in #13001.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user