Skip to content

Commit

Permalink
work around defect with stringstream inplace
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Sep 25, 2024
1 parent 1fbf2aa commit 4ba4eec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dpp/dave/persisted_key_pair_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ std::shared_ptr<::mlspp::SignaturePrivateKey> GetGenericPersistedKeyPair(KeyPair
return nullptr;
}

curstr = (std::stringstream() << ifs.rdbuf()).str();
std::stringstream s = (std::stringstream() << ifs.rdbuf());
curstr = s.str();
if (!ifs) {
DISCORD_LOG(LS_ERROR) << "Failed to read key in GetPersistedKeyPair";
return nullptr;
Expand Down

0 comments on commit 4ba4eec

Please sign in to comment.