]> git.droids-corp.org - dpdk.git/commitdiff
eal/linux: fix uninitialized value
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 1 Jun 2018 09:08:11 +0000 (10:08 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Jul 2018 09:44:43 +0000 (11:44 +0200)
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>
lib/librte_eal/linuxapp/eal/eal_memory.c

index a48a3502c24eb7ac58a34f63e14cb22d5d665601..5d3c8831bb0c89ae20817762bb8f0f78620c8cbf 100644 (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()) {