Skip to content

Commit

Permalink
Merge pull request #309 from ipochto/master
Browse files Browse the repository at this point in the history
Fixed complilation error.
  • Loading branch information
timfel committed Dec 17, 2020
2 parents 48c26bb + a9feab1 commit a2ccd5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/network/online_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1211,9 +1211,7 @@ class Context : public OnlineContext {

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());
Expand Down

0 comments on commit a2ccd5f

Please sign in to comment.