diff --git a/src/corelib/codecs/qtextcodec.cpp b/src/corelib/codecs/qtextcodec.cpp
index 9af307ca17d63d178b2a6a61df94009b5c744a9f..bceead72f3e2bdc5bccf431d964f77c092771308 100644
--- a/src/corelib/codecs/qtextcodec.cpp
+++ b/src/corelib/codecs/qtextcodec.cpp
@@ -503,7 +503,7 @@ QTextCodec *QTextCodec::codecForName(const QByteArray &name)
     QCoreGlobalData *globalData = QCoreGlobalData::instance();
     if (!globalData)
         return 0;
-        setup();
+    setup();
 
 #ifndef QT_USE_ICU
     QTextCodecCache *cache = &globalData->codecCache;