dmenu

dynamic menu
git clone git://git.suckless.org/dmenu
Log | Files | Refs | README | LICENSE

commit 523aa08f51a88c59ad4b1f600f8ce3d122e9e289
parent 1a13d0465d1a6f4f74bc5b07b04c9bd542f20ba6
Author: Guilherme Janczak <guilherme.janczak@yandex.com>
Date:   Sun, 25 Jul 2021 01:55:25 +0000

remove always true condition in if statement

Diffstat:
Mstest.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stest.c b/stest.c @@ -84,7 +84,7 @@ main(int argc, char *argv[]) if (!argc) { /* read list from stdin */ while ((n = getline(&line, &linesiz, stdin)) > 0) { - if (n && line[n - 1] == '\n') + if (line[n - 1] == '\n') line[n - 1] = '\0'; test(line, line); }