1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

remove memset in cons_show_qrcode

Signed-off-by: swirl <swurl@swurl.xyz>
This commit is contained in:
swirl 2022-06-15 08:36:24 -04:00
parent 7ed944254f
commit 7276db07f4
No known key found for this signature in database
GPG Key ID: 46507311CD292A08

View File

@ -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);