Hi,
Issue found by Coverity Scan.
CID 210632 (#1 of 1): Logically dead code (DEADCODE)
array_null: Comparing an array to null is not useful: ilex.name, since the test 
will always evaluate as true.

--- a\src\iup_ledlex.c  Sun Jul 26 03:10:06 2015
+++ b\src\iup_ledlex.c  Fri Jan 19 15:20:27 2018
@@ -150,10 +150,7 @@
 
 char* iupLexGetName(void)
 {
-  if (ilex.name)
-    return iupStrDup(ilex.name);
-  else
-    return NULL;
+  return iupStrDup(ilex.name);
 }
 
 char* iupLexName(void)

Best.
Ranier

Attachment: iup_ledlex.patch
Description: iup_ledlex.patch

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to