dtstyle: Coverity 89456

This commit is contained in:
Peter Howkins
2018-07-03 18:42:00 +01:00
parent c743c30cb9
commit 43ed7dacc6

View File

@@ -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)
{