eal/linux: fix uninitialized value

The value is not used, but some static analyzers may give out a
warning. Fix it by assigning default value of zero.

Bugzilla ID: 58
Fixes: cdc242f260e7 ("eal/linux: support running as unprivileged user")
Cc: stable@dpdk.org

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
This commit is contained in:
Anatoly Burakov 2018-06-01 10:08:11 +01:00 committed by Thomas Monjalon
parent 462dd3722e
commit 96712b33af

View File

@ -66,7 +66,7 @@ static bool phys_addrs_available = true;
static void
test_phys_addrs_available(void)
{
uint64_t tmp;
uint64_t tmp = 0;
phys_addr_t physaddr;
if (!rte_eal_has_hugepages()) {