diff options
-rw-r--r-- | src/core/kconfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/kconfig.cpp b/src/core/kconfig.cpp index 484a9a97..14a5d39c 100644 --- a/src/core/kconfig.cpp +++ b/src/core/kconfig.cpp @@ -63,7 +63,7 @@ KConfigPrivate::KConfigPrivate(KConfig::OpenFlags flags, { sGlobalFileName = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1String("/kdeglobals"); - static int use_etc_kderc = -1; + static QBasicAtomicInt use_etc_kderc = Q_BASIC_ATOMIC_INITIALIZER(-1); if (use_etc_kderc < 0) { use_etc_kderc = !qEnvironmentVariableIsSet("KDE_SKIP_KDERC"); // for unit tests } |