Noise: Prevent unittest crash caused by division by zero
[oweals/minetest.git] / src / database-redis.h
index 214bc8dd69e637ce544485c4db254857b0c48e70..1e7909f857b4654fff31302367eb55b932ea0f1e 100644 (file)
@@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 class Settings;
 
-class Database_Redis : public Database
+class Database_Redis : public MapDatabase
 {
 public:
        Database_Redis(Settings &conf);
@@ -45,8 +45,8 @@ public:
        void listAllLoadableBlocks(std::vector<v3s16> &dst);
 
 private:
-       redisContext *ctx;
-       std::string hash;
+       redisContext *ctx = nullptr;
+       std::string hash = "";
 };
 
 #endif // USE_REDIS