about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorswirl <swurl@swurl.xyz>2022-06-15 08:36:24 -0400
committerswirl <swurl@swurl.xyz>2022-06-15 08:36:24 -0400
commit7276db07f4dcee46b81506e4855bc01338455aea (patch)
tree60b5e3ddcdb95f951668e11f863a1cffe76bd20c /src/ui
parent7ed944254f4d5f91a48cdaab643d630e9f532af6 (diff)
downloadprofani-tty-7276db07f4dcee46b81506e4855bc01338455aea.tar.gz
remove memset in cons_show_qrcode
Signed-off-by: swirl <swurl@swurl.xyz>
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c2
1 files changed, 1 insertions, 1 deletions
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);