]> git.stg.codes - stg.git/blobdiff - projects/stargazer/admins_impl.cpp
Correcting case insensitive search
[stg.git] / projects / stargazer / admins_impl.cpp
index a780fcb316b80c7145b09e73b1c91f0218378c19..7d73dde1834cde8481ddeee2fde6f3cc78d3de66 100644 (file)
@@ -47,7 +47,9 @@ ADMINS_IMPL::ADMINS_IMPL(STORE * st)
       store(st),
       WriteServLog(GetStgLogger()),
       searchDescriptors(),
-      handle(0)
+      handle(0),
+      mutex(),
+      strError()
 {
 pthread_mutex_init(&mutex, NULL);
 Read();
@@ -217,7 +219,7 @@ assert(admin != NULL && "Pointer to admin is not null");
 STG_LOCKER lock(&mutex, __FILE__, __LINE__);
 if (data.empty())
     {
-    printfd(__FILE__, "no admin in system!\n");
+    printfd(__FILE__, "No admin in system!\n");
     *admin = &noAdmin;
     return false;
     }