]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fix dead code in buttonbar
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 1 Oct 2019 16:49:18 +0000 (18:49 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 1 Oct 2019 17:13:55 +0000 (19:13 +0200)
buttonbar.c

index 45473c9d2724eb96c58945e31c17d69ffcb661cb..cf48609a50a42b0afdc06d6a7cc139e7119f2fe2 100644 (file)
@@ -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;