]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/common/eal_common_devargs.c
test/mem: disable ASan when accessing unallocated memory
[dpdk.git] / lib / eal / common / eal_common_devargs.c
index 69004b0a2d2f4e7277fc255290770b87b63a9c20..d5833af3739084dd31ef6637748d6fbd6461f7dd 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) {