Skip to content

Commit

Permalink
Fixed complilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ipochto committed Dec 16, 2020
1 parent 48c26bb commit a9feab1
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 a9feab1

Please sign in to comment.