Merge pull request from ipochto/master

Fixed complilation error.
This commit is contained in:
Tim Felgentreff 2020-12-17 18:02:58 +01:00 committed by GitHub
commit a2ccd5fbb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1211,9 +1211,7 @@ public:
void setPassword(std::string pw) {
if (pw.empty()) {
for (int i = 0; i < sizeof(password); i++) {
this->password[i] = 0;
}
memset(password, 0, sizeof(password));
hasPassword = false;
} else {
pvpgn::sha1_hash(&password, pw.length(), pw.c_str());