From 99bab97ea7f0a04cd2a3488e83424088591dcc1b Mon Sep 17 00:00:00 2001 From: Moritz Luedecke Date: Tue, 15 Aug 2017 19:16:19 +0200 Subject: Fix uninitialized variable when call pinentry without description --- pinentry-dmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c index 8cea096..15e4c45 100644 --- a/pinentry-dmenu.c +++ b/pinentry-dmenu.c @@ -135,7 +135,7 @@ insert(const char *str, ssize_t n) { static void drawwin(void) { unsigned int curpos; - int x = 0, pb = 0, pbw, i; + int x = 0, pb = 0, pbw = 0, i; size_t asterlen = strlen(asterisk); size_t pdesclen; char* censort = ecalloc(1, asterlen * sizeof(text)); -- cgit v1.2.3