OSDN Git Service

fix memset size for fixed array
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Tue, 21 Nov 2017 20:05:39 +0000 (12:05 -0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 27 Nov 2017 18:57:50 +0000 (10:57 -0800)
commit84bcbc166aad53458a089c3b75b0e44a7bc8061f
tree50a76c9b46eb7ae0b44ff269068cd26f531b940a
parent35fc70f09e343ccb91c7957757ec27a5c0f9fcd1
fix memset size for fixed array

Use sizeof on fixed array instead of hard-coded value.

The hard-coded value did not account for the size of the
data type (uint32_t) and therefore did not zero out the
entire array, rather it only zero'd out number of elements
bytes.

This prevents compiler memset-elt-size error when using
-Wall -Werror compiler flags.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/gen8_mfc.c