summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-03-12 09:41:00 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2019-03-13 11:51:54 +0100
commitead7f10c0953d0ec1cfa978796b4b6a639be1620 (patch)
tree35e85bfb40311822be9ae2d2e0ff9aaba65e8f42 /src/lib
parent98ca79e8ce2d479f1e3d29eff04e39c232f1c275 (diff)
efl_core_command_line: Fix logically dead code
Small patch to remove logically dead code. Coverity reports that execution cannot reach the expression 0U inside this for statement. At this point in execution, 'array' cannot be NULL, so checking for its existence is a logically dead check. Fixes Coverity CID1399106 @fix Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8306
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore/efl_core_command_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore/efl_core_command_line.c b/src/lib/ecore/efl_core_command_line.c
index 424dd3486a..54d21281d8 100644
--- a/src/lib/ecore/efl_core_command_line.c
+++ b/src/lib/ecore/efl_core_command_line.c
@@ -223,7 +223,7 @@ _efl_core_command_line_command_array_set(Eo *obj EINA_UNUSED, Efl_Core_Command_L
223 eina_stringshare_del(eina_array_pop(pd->command)); 223 eina_stringshare_del(eina_array_pop(pd->command));
224 eina_array_free(pd->command); 224 eina_array_free(pd->command);
225 pd->command = NULL; 225 pd->command = NULL;
226 for (;i < (array ? eina_array_count(array) : 0); ++i) 226 for (;i < eina_array_count(array); ++i)
227 { 227 {
228 content = eina_array_data_get(array, i); 228 content = eina_array_data_get(array, i);
229 eina_stringshare_del(content); 229 eina_stringshare_del(content);