diff options
author | Moritz Luedecke <ritze@skweez.net> | 2017-08-20 16:01:03 +0200 |
---|---|---|
committer | Moritz Luedecke <ritze@skweez.net> | 2017-08-20 16:01:03 +0200 |
commit | 33a113aa25c1d910cb89fdd37910cb99df02e280 (patch) | |
tree | df5b946e0b929ea204ff6b6eaa18c6c150aa6848 /pinentry-dmenu.c | |
parent | 3a47ab1cecdb9e75d5837181daf707a4f7a656c4 (diff) |
Remove unneded assignment
Diffstat (limited to 'pinentry-dmenu.c')
-rw-r--r-- | pinentry-dmenu.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c index 949d2c1..0362f9e 100644 --- a/pinentry-dmenu.c +++ b/pinentry-dmenu.c @@ -143,7 +143,6 @@ drawwin(void) { size_t asterlen = strlen(asterisk); size_t pdesclen; int leftinput; - char* desc; char* censort = ecalloc(1, asterlen * sizeof(text)); unsigned int censortl = minpwlen * TEXTW(asterisk) / strlen(asterisk); @@ -176,16 +175,16 @@ drawwin(void) { pbw = MAX(pbw, pdescw); pbw = MIN(pbw, pb); pb = mw - pbw; - desc = pinentry->description; for (i = 0; i < pdesclen; i++) { - if (desc[i] == '\n') { - desc[i] = ' '; + if (pinentry->description[i] == '\n') { + pinentry->description[i] = ' '; } } drw_setscheme(drw, scheme[SchemeDesc]); - drw_text(drw, pb, 0, pbw, bh, lrpad / 2, desc, 0); + drw_text(drw, pb, 0, pbw, bh, lrpad / 2, pinentry->description, + 0); } else { pbw = 0; } |