summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Luedecke <ritze@skweez.net>2017-08-15 19:16:19 +0200
committerMoritz Luedecke <ritze@skweez.net>2017-08-15 19:16:19 +0200
commit99bab97ea7f0a04cd2a3488e83424088591dcc1b (patch)
tree9903d0292c7b048b9aca560a8e0c7f1cbce20081
parenta1e86f9bb1d0e5571c1aa7eee8501d044bf19c91 (diff)
Fix uninitialized variable when call pinentry without description
-rw-r--r--pinentry-dmenu.c2
1 files changed, 1 insertions, 1 deletions
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));