Merge pull request #10883

9477d0c wallet: initialize URI parse outputs (Samy)

ACKs: selsta, jpk68
This commit is contained in:
tobtoht
2026-08-09 22:00:24 +00:00
2 changed files with 29 additions and 1 deletions
+8 -1
View File
@@ -14888,6 +14888,14 @@ bool wallet2::parse_uri(const std::string &uri, std::string &address, std::strin
error = std::string("URI has wrong address: ") + address;
return false;
}
payment_id.clear();
amount = 0;
tx_description.clear();
recipient_name.clear();
unknown_parameters.clear();
error.clear();
if (!strchr(remainder.c_str(), '?'))
return true;
@@ -14915,7 +14923,6 @@ bool wallet2::parse_uri(const std::string &uri, std::string &address, std::strin
if (kv[0] == "tx_amount")
{
amount = 0;
if (!cryptonote::parse_amount(amount, kv[1]))
{
error = std::string("URI has invalid amount: ") + kv[1];