Skip to content

Commit eb3c262

Browse files
committed
reset buffer
1 parent 9dacfd4 commit eb3c262

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/ui/view_nbgl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,8 @@ static void config_useCaseReviewLight(const char *title, const char *validate) {
525525

526526
void view_review_show_impl(unsigned int requireReply, const char *title, const char *validate) {
527527
review_type = (review_type_e)requireReply;
528+
// Reset dynamic approval label to avoid stale values across calls
529+
approval_label_buf[0] = '\0';
528530

529531
intro_message = NULL;
530532
intro_submessage = NULL;
@@ -571,6 +573,8 @@ void view_review_show_impl(unsigned int requireReply, const char *title, const c
571573

572574
void view_review_show_with_intent_impl(unsigned int requireReply, const char *intent) {
573575
review_type = (review_type_e)requireReply;
576+
// Reset dynamic approval label to avoid stale values across calls
577+
approval_label_buf[0] = '\0';
574578

575579
intro_message = NULL;
576580
intro_submessage = NULL;

0 commit comments

Comments
 (0)