Fixed coverity issues in src/acl_kernel.cpp by haoxian2 · Pull Request #221 · intel/fpga-runtime-for-opencl (original) (raw)
…riable (UNINIT)
Function l_copy_and_adjust_arguments_for_device at line 2164 uses memory_migration.num_mem_objects, but memory_migration has only been declared up until this point. I assume that since there has been no changes to memory_migration, upon declaration, the num_mem_objects should be set to 0. This assumption is reinforced by the second occurrence of l_copy_and_adjust_arguments_for_device at line 2228 where memory_migration.num_mem_objects = 0 is been initialized a few lines before.