Fixed read of uninitialized variables detected with UBSAN.
diff --git a/src/tests/cluster.hpp b/src/tests/cluster.hpp
index b36b94f..eae6bcf 100644
--- a/src/tests/cluster.hpp
+++ b/src/tests/cluster.hpp
@@ -106,7 +106,8 @@
void setAuthorizationCallbacks(Authorizer* authorizer);
private:
- Master() : files(master::READONLY_HTTP_AUTHENTICATION_REALM) {};
+ Master() : files(master::READONLY_HTTP_AUTHENTICATION_REALM),
+ authorizationCallbacksSet(false) {}
// Not copyable, not assignable.
Master(const Master&) = delete;
@@ -203,7 +204,8 @@
void setAuthorizationCallbacks(Authorizer* authorizer);
private:
- Slave() : files(slave::READONLY_HTTP_AUTHENTICATION_REALM) {};
+ Slave() : files(slave::READONLY_HTTP_AUTHENTICATION_REALM),
+ authorizationCallbacksSet(false) {}
// Not copyable, not assignable.
Slave(const Slave&) = delete;