diff --git a/lib/librte_eal/common/malloc_mp.c b/lib/librte_eal/common/malloc_mp.c index f3a13353b1..b470565e0d 100644 --- a/lib/librte_eal/common/malloc_mp.c +++ b/lib/librte_eal/common/malloc_mp.c @@ -501,7 +501,7 @@ handle_rollback_response(const struct rte_mp_msg *request, /* lock the request */ pthread_mutex_lock(&mp_request_list.lock); - memset(&msg, 0, sizeof(0)); + memset(&msg, 0, sizeof(msg)); entry = find_request_by_id(mpreq->id); if (entry == NULL) {