projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c743c30
)
dtstyle: Coverity 89456
author
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 17:42:00 +0000
(18:42 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Tue, 3 Jul 2018 17:42:00 +0000
(18:42 +0100)
cde/programs/dtstyle/ColorMain.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtstyle/ColorMain.c
b/cde/programs/dtstyle/ColorMain.c
index 868e63a215c314e848b44f27ab89bc831c5a8d3e..4b3d4a825c63f2cf07604e35ed761e04f0c9da18 100644
(file)
--- 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)
{