changeset 26373:5b4b46f7e9ec stable

__init_fltk__.cc: Fix static analyzer detected V560 issue (bug #55347) Remove redundant check for idx >= 0
author Andreas Weber <octave@josoansi.de>
date Wed, 02 Jan 2019 21:39:05 +0100
parents 2d9ae06f621b
children b3a2ee31dd58
files libinterp/dldfcn/__init_fltk__.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc	Wed Jan 02 11:44:09 2019 -0800
+++ b/libinterp/dldfcn/__init_fltk__.cc	Wed Jan 02 21:39:05 2019 +0100
@@ -528,7 +528,7 @@
           {
             if (uimenup.is_separator ())
               {
-                if (idx >= 0 && !(itemflags & FL_SUBMENU))
+                if (! (itemflags & FL_SUBMENU))
                   m_menubar->mode (idx, itemflags | FL_MENU_DIVIDER);
               }
             else