From: Miroslav Lichvar Date: Tue, 1 Oct 2019 16:49:18 +0000 (+0200) Subject: fix dead code in buttonbar X-Git-Tag: r0-52-22~12 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=50dae21efed00d908ca4f4d4870659dd3d514b26;p=thirdparty%2Fnewt.git fix dead code in buttonbar --- 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;