From: Peter Howkins Date: Tue, 3 Jul 2018 17:42:00 +0000 (+0100) Subject: dtstyle: Coverity 89456 X-Git-Tag: 2.3.0a~232 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=43ed7dacc6e9a8bb844552d4e387e593a7ac9dbf;p=oweals%2Fcde.git dtstyle: Coverity 89456 --- 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) {