From 7276db07f4dcee46b81506e4855bc01338455aea Mon Sep 17 00:00:00 2001 From: swirl Date: Wed, 15 Jun 2022 08:36:24 -0400 Subject: [PATCH] remove memset in cons_show_qrcode Signed-off-by: swirl --- src/ui/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/console.c b/src/ui/console.c index 7f245a16..960aa5ea 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -903,7 +903,7 @@ cons_show_qrcode(const char* const text) // The extra squares are for padding, so that the QR code doesn't // "blend in" with the rest of the terminal window. win_println(console, THEME_DEFAULT, "", "\u2588\u2588%s\u2588\u2588", buf); - memset(buf, 0, sizeof buf); + buf = { 0 }; } win_println(console, THEME_DEFAULT, "", "%s", pad);