Fix warnings shown by cppcheck for wrt-commons
[framework/web/wrt-commons.git] / modules / utils / src / wrt_global_settings.cpp
index adaac78..4f005c5 100644 (file)
@@ -91,9 +91,9 @@ bool initializeGlobalSettings()
     // ignore environment variables if this flag is not set
 #ifdef GLOBAL_SETTINGS_CONTROL
     char * envStr = getenv(WRT_TEST_MODE);
-    int testMode = 0;
     if (NULL != envStr) {
         std::string env = envStr;
+        int testMode = 0;
         if ("1" == env) {
             testMode = ALL_TEST;
         } else {