[PATCH 05/14] cfdisk: add braces to ensure operation order

Sami Kerola
2014-07-13T20:25:20Z

disk-utils/cfdisk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index b79579e..fb089f5 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -636,7 +636,7 @@ static void resize_on_signal(int dummy __attribute__((__unused__)))
static void menu_refresh_size(struct cfdisk *cf)
{
if (cf->menu && cf->menu->nitems)
- cf->menu->page_sz = cf->menu->nitems / (LINES - 4) ? LINES - 4 : 0;
+ cf->menu->page_sz = (cf->menu->nitems / (LINES - 4)) ? LINES - 4 : 0;
}

static void menu_update_ignore(struct cfdisk *cf)
--
2.0.1