]> git.stg.codes - stg.git/commitdiff
Renamed a variable.
authorMaxim Mamontov <faust.madf@gmail.com>
Sat, 10 Aug 2013 07:04:49 +0000 (10:04 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 10 Aug 2013 07:04:49 +0000 (10:04 +0300)
projects/stargazer/plugins/store/postgresql/postgresql_store.cpp

index aabce23b4dd396b36568f5aae8f752b453ba8d2a..5e2d8ae6de9e29aa608686d0cc3351f406355c97 100644 (file)
@@ -96,15 +96,15 @@ std::vector<PARAM_VALUE>::iterator i;
 for(i = settings.moduleParams.begin(); i != settings.moduleParams.end(); ++i)
     {
     std::string param(ToLower(i->param));
-    if (s == "server")
+    if (param == "server")
         server = *(i->value.begin());
-    else if (s == "database")
+    else if (param == "database")
         database = *(i->value.begin());
-    else if (s == "user")
+    else if (param == "user")
         user = *(i->value.begin());
-    else if (s == "password")
+    else if (param == "password")
         password = *(i->value.begin());
-    else if (s == "retries")
+    else if (param == "retries")
         if (str2x(*(i->value.begin()), retries))
             {
             strError = "Invalid 'retries' value";