From 28591f2e92cff7edb8da4339b61b15305419863a Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Thu, 7 Sep 2017 10:38:15 +0200 Subject: [PATCH] Explicitly provide both cases in conditional (fixes warning) Change-Id: Iedca64432103af5407a7c7bac83e92ca1ae8992b --- apps/gui/bitmap/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 97eefce9db..2d3141b8cc 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -311,7 +311,7 @@ void list_draw(struct screen *display, struct gui_synclist *list) #endif linedes.style = style; - linedes.scroll = is_selected ?: list->scroll_all; + linedes.scroll = is_selected ? true : list->scroll_all; linedes.line = i % list->selected_size; /* the list can have both, one of or neither of cursor and item icons,