test/mem: disable ASan when accessing unallocated memory
[dpdk.git] / lib / eal / common / eal_common_dev.c
index 148a238..c0ee4e4 100644 (file)
@@ -5,20 +5,15 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <inttypes.h>
 #include <sys/queue.h>
 
-#include <rte_compat.h>
 #include <rte_bus.h>
 #include <rte_class.h>
 #include <rte_dev.h>
 #include <rte_devargs.h>
-#include <rte_debug.h>
 #include <rte_errno.h>
-#include <rte_kvargs.h>
 #include <rte_log.h>
 #include <rte_spinlock.h>
-#include <rte_malloc.h>
 #include <rte_string_fns.h>
 
 #include "eal_private.h"
@@ -573,7 +568,7 @@ int
 rte_dev_iterator_init(struct rte_dev_iterator *it,
                      const char *dev_str)
 {
-       struct rte_devargs devargs;
+       struct rte_devargs devargs = { .bus = NULL };
        struct rte_class *cls = NULL;
        struct rte_bus *bus = NULL;