test/mem: disable ASan when accessing unallocated memory
[dpdk.git] / lib / eal / common / eal_common_devargs.c
index 69004b0..d5833af 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <rte_bus.h>
 #include <rte_class.h>
-#include <rte_compat.h>
 #include <rte_dev.h>
 #include <rte_devargs.h>
 #include <rte_errno.h>
@@ -190,6 +189,7 @@ rte_devargs_parse(struct rte_devargs *da, const char *dev)
 
        if (da == NULL)
                return -EINVAL;
+       memset(da, 0, sizeof(*da));
 
        /* First parse according global device syntax. */
        if (rte_devargs_layers_parse(da, dev) == 0) {