null: fix build with gcc 5.1
null: fix build with gcc 5.1

On Fedora 22, with GCC 5.1, errors are reported due to array accesses
being potentially out of bounds. This commit fixes this by adding in an
extra bounds check to the loop counters, or, in the case of stats reset,
by blindly zeroing the whole array, rather than just the part that is in
use.

Signed-off-by: Bruce Richardson <66b9e8e8fbd5e9f41f91b0af050876182ce9d0e4@intel.com>
Acked-by: Neil Horman <3316dc2d77df57653443c0391a5296176d6ca9c3@tuxdriver.com>

msune/dpdk,venkynv/dpdk-mirror,tsphillips/dpdk-fork,msune/dpdk,tsphillips/dpdk-fork,john-mcnamara-intel/dpdk,msune/dpdk,mixja/dpdk,tsphillips/dpdk-fork,venkynv/dpdk-mirror,mixja/dpdk,venkynv/dpdk-mirror,tsphillips/dpdk-fork,mixja/dpdk,mixja/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,venkynv/dpdk-mirror,john-mcnamara-intel/dpdk,msune/dpdk