From 50dae21efed00d908ca4f4d4870659dd3d514b26 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 1 Oct 2019 18:49:18 +0200 Subject: [PATCH] fix dead code in buttonbar --- buttonbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buttonbar.c b/buttonbar.c index 45473c9..cf48609 100644 --- a/buttonbar.c +++ b/buttonbar.c @@ -26,7 +26,7 @@ newtGrid newtButtonBarv(char * button1, newtComponent * b1comp, va_list args) { *buttons[i].compPtr = newtButton(-1, -1, buttons[i].name); newtGridSetField(grid, i, 0, NEWT_GRID_COMPONENT, *buttons[i].compPtr, - num ? 1 : 0, 0, 0, 0, 0, 0); + i ? 1 : 0, 0, 0, 0, 0, 0); } return grid; -- 2.47.2