LocaleRoster: race condition on catalog loading.
Using a vint32 isn't enough to safely decide if the catalog is initialized or not. Use init_once features instead.
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#define _LOCALE_ROSTER_H_
|
||||
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include <Entry.h>
|
||||
#include <String.h>
|
||||
|
||||
@@ -98,7 +100,7 @@ protected:
|
||||
|
||||
private:
|
||||
static BCatalog* _GetCatalog(BCatalog* catalog,
|
||||
vint32* catalogInitStatus);
|
||||
int32* catalogInitStatus);
|
||||
|
||||
status_t _PrepareCatalogEntry(const entry_ref& ref,
|
||||
BString& signature, BString& context,
|
||||
|
||||
Reference in New Issue
Block a user