]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/postgresql/postgresql_store_users.cpp
Split SETTINGS to interface and implementation
[stg.git] / projects / stargazer / plugins / store / postgresql / postgresql_store_users.cpp
index 2c66cc7f425fb4b251b2c3ef57bbf3bef365b456..7d8b3b939fa25559d1c9acb9b5860766c52cc98b 100644 (file)
@@ -906,7 +906,11 @@ for (int i = 0; i < tuples; ++i)
         }
     else
         {
-        conf->userdata[i] = PQgetvalue(result, i, 1);
+        if (num < USERDATA_NUM &&
+            num >= 0)
+            {
+            conf->userdata[num] = PQgetvalue(result, i, 1);
+            }
         }
     }