From 14ef1332aa65a43b3b35675e5e67ed080509b6d6 Mon Sep 17 00:00:00 2001 From: zxkmm Date: Sun, 29 Sep 2024 21:28:36 +0800 Subject: [PATCH] init in methods local var --- .../external/random_password/ui_random_password.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/external/random_password/ui_random_password.cpp b/firmware/application/external/random_password/ui_random_password.cpp index b5e322a2..0d748cee 100644 --- a/firmware/application/external/random_password/ui_random_password.cpp +++ b/firmware/application/external/random_password/ui_random_password.cpp @@ -212,8 +212,8 @@ void RandomPasswordView::set_random_freq() { void RandomPasswordView::new_password() { password = ""; - std::string charset; - std::string char_type_hints; + std::string charset = ""; + std::string char_type_hints = ""; if (check_digits.value()) charset += "0123456789";