From 43ed7dacc6e9a8bb844552d4e387e593a7ac9dbf Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Tue, 3 Jul 2018 18:42:00 +0100 Subject: [PATCH] dtstyle: Coverity 89456 --- cde/programs/dtstyle/ColorMain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cde/programs/dtstyle/ColorMain.c b/cde/programs/dtstyle/ColorMain.c index 868e63a2..4b3d4a82 100644 --- a/cde/programs/dtstyle/ColorMain.c +++ b/cde/programs/dtstyle/ColorMain.c @@ -1510,9 +1510,10 @@ deletePaletteCB( tmp_palette = pHeadPalette; - while( tmp_palette->item_position != selected_position && - tmp_palette != NULL) + while( tmp_palette != NULL + && tmp_palette->item_position != selected_position ) { tmp_palette = tmp_palette->next; + } if (deleteDialog == NULL) { -- 2.25.1