]> git.stg.codes - stg.git/blobdiff - projects/stargazer/users_impl.cpp
Explicit constructor initialization for the base class added
[stg.git] / projects / stargazer / users_impl.cpp
index d0e5364463ea12d0a1aae688d5cf24209833eb01..febd90f5575d2ba2f4a9f829cea12d2a180e2604 100644 (file)
@@ -53,7 +53,8 @@ extern const volatile time_t stgTime;
 
 //-----------------------------------------------------------------------------
 USERS_IMPL::USERS_IMPL(SETTINGS_IMPL * s, STORE * st, TARIFFS * t, const ADMIN * sa)
-    : users(),
+    : USERS(),
+      users(),
       usersToDelete(),
       userIPNotifiersBefore(),
       userIPNotifiersAfter(),
@@ -274,7 +275,7 @@ usersList.clear();
 if (store->GetUsersList(&usersList) < 0)
     {
     WriteServLog(store->GetStrError().c_str());
-    exit(1);
+    return -1;
     }
 
 user_iter ui;